Created
June 4, 2013 16:55
-
-
Save ssm/5707587 to your computer and use it in GitHub Desktop.
This file contains 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
# 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