Skip to content

Instantly share code, notes, and snippets.

@mbrownnycnyc
Created March 4, 2016 21:26
Show Gist options
  • Save mbrownnycnyc/3536ce0a1c490ffa5bfa to your computer and use it in GitHub Desktop.
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
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