Skip to content

Instantly share code, notes, and snippets.

@carlanton
Forked from augieschwer/hekad.conf
Last active August 29, 2015 14:21
Show Gist options
  • Save carlanton/5355845d089f36e1489d to your computer and use it in GitHub Desktop.
Save carlanton/5355845d089f36e1489d to your computer and use it in GitHub Desktop.
A better Upstart script for hekad.
# hekad - http://hekad.readthedocs.org/en/latest/ -- The hekad daemon is the core component of the heka project
#
# Configure hekad in /etc/heka.d/
start on runlevel [2345]
stop on runlevel [!2345]
respawn
respawn limit unlimited
# prevent respawning more than once every 5 seconds
post-stop exec sleep 5
setuid heka
setgid heka
exec /usr/bin/hekad -config=/etc/heka.d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment