Skip to content

Instantly share code, notes, and snippets.

@augieschwer
Created July 23, 2013 21:40
Show Gist options
  • Save augieschwer/6066421 to your computer and use it in GitHub Desktop.
Save augieschwer/6066421 to your computer and use it in GitHub Desktop.
An 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/hekad.toml
start on runlevel [2345]
respawn
pre-start script
[ -d /var/run/hekad/seekjournals/ ] || mkdir -p /var/run/hekad/seekjournals/
end script
exec /usr/bin/hekad -config=/etc/hekad.toml >> /var/log/hekad.log 2>&1
@carlanton
Copy link

Heka doesn't use /var/run/hekad any more: mozilla-services/heka#353

Here is an improved version: https://gist.github.com/carlanton/5355845d089f36e1489d

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment