added Malcolm
This commit is contained in:
		
							
								
								
									
										14
									
								
								Vagrant/resources/malcolm/moloch/scripts/wise_service.sh
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										14
									
								
								Vagrant/resources/malcolm/moloch/scripts/wise_service.sh
									
									
									
									
									
										Executable file
									
								
							| @@ -0,0 +1,14 @@ | ||||
| #!/bin/bash | ||||
|  | ||||
| # Copyright (c) 2021 Battelle Energy Alliance, LLC.  All rights reserved. | ||||
|  | ||||
|  | ||||
| while true; do | ||||
|   if [[ ("$WISE" == "on") && (-f /var/run/moloch/runwise) && (-f $ARKIMEDIR/etc/wise.ini) ]]; then | ||||
|     echo "Launch wise..." | ||||
|     pushd $ARKIMEDIR/wiseService >/dev/null 2>&1 | ||||
|     $ARKIMEDIR/bin/node wiseService.js -c $ARKIMEDIR/etc/wise.ini | ||||
|     popd >/dev/null 2>&1 | ||||
|   fi | ||||
|   sleep 5 | ||||
| done | ||||
		Reference in New Issue
	
	Block a user