Skip to content

Instantly share code, notes, and snippets.

@ssm
Created June 4, 2013 16:55
Show Gist options
  • Save ssm/5707587 to your computer and use it in GitHub Desktop.
Save ssm/5707587 to your computer and use it in GitHub Desktop.
# munin-node
description "munin instance of rrdcached"
author "Stig Sandbeck Mathisen <ssm@debian.org>"
start on filesystem
stop on runlevel [!2345]
# respawn
umask 022
pre-start script
install -d -o munin -g munin -m 0755 /var/lib/munin/rrdcached-journal
install -d -o munin -g munin -m 0755 /run/munin
end script
script
start-stop-daemon \
--start \
--chuid munin \
--exec /usr/bin/rrdcached \
--pidfile /run/munin/rrdcached.pid \
-- \
-g \
-p /run/munin/rrdcached.pid \
-B -b /var/lib/munin/ \
-F -j /var/lib/munin/rrdcached-journal/ \
-m 0660 -l unix:/run/munin/rrdcached.sock \
-w 1800 -z 1800 -f 3600
end script
post-start script
sleep 1
setfacl -m u:www-data:rw /run/munin/rrdcached.sock
end script
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment