added Malcolm
This commit is contained in:
		
							
								
								
									
										13
									
								
								Vagrant/resources/malcolm/moloch/scripts/viewer_service.sh
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										13
									
								
								Vagrant/resources/malcolm/moloch/scripts/viewer_service.sh
									
									
									
									
									
										Executable file
									
								
							| @@ -0,0 +1,13 @@ | ||||
| #!/bin/bash | ||||
|  | ||||
| # Copyright (c) 2021 Battelle Energy Alliance, LLC.  All rights reserved. | ||||
|  | ||||
|  | ||||
| while true; do | ||||
|   if [[ -f /var/run/moloch/initialized && "$VIEWER" == "on" ]]; then | ||||
|     echo "Launch viewer..." | ||||
|     cd $ARKIMEDIR/viewer | ||||
|     $ARKIMEDIR/bin/node viewer.js -c $ARKIMEDIR/etc/config.ini | tee -a $ARKIMEDIR/logs/viewer.log 2>&1 | ||||
|   fi | ||||
|   sleep 5 | ||||
| done | ||||
		Reference in New Issue
	
	Block a user