Created
March 4, 2016 21:26
-
-
Save mbrownnycnyc/3536ce0a1c490ffa5bfa to your computer and use it in GitHub Desktop.
moloch upstart script for moloch node.js capture process from Google Groups post https://groups.google.com/forum/#!topic/moloch-fpc/ImhLjuN7RkM
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
description "Upstart configuration for Capture" | |
#copy to /etc/init/moloch-capture.conf | |
# When to start the service | |
start on (started network and started moloch-elasticsearch) | |
# When to stop the service | |
stop on stopping moloch-elasticsearch | |
# Automatically restart the process if crashed | |
respawn | |
respawn limit 10 5 | |
script | |
exec /data/moloch/bin/run_capture.sh | |
end script |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment