--- munin-asyncd 2017-04-14 00:18:43.000000000 +0200 +++ munin-asyncd.fix 2017-07-25 13:21:57.933019000 +0200 @@ -23,18 +23,26 @@ load_rc_config $name -: ${munin_asyncd_enable:=NO} -: ${munin_asyncd_spool:=/var/spool/munin/async} -: ${munin_asyncd_host:=localhost:4949} +start_cmd="${name}_start" +stop_cmd="${name}_stop" command="/usr/local/share/munin/munin-asyncd" command_interpreter="/usr/local/bin/perl" pidfile="/var/run/${name}.pid" -start_cmd() +: ${munin_asyncd_enable:=NO} +: ${munin_asyncd_spool:=/var/spool/munin/async} +: ${munin_asyncd_host:=localhost:4949} + +munin_asyncd_start() { check_startmsgs && echo "Starting ${name}." daemon -u munin -f -p ${pidfile} ${command_interpreter} ${command} --spool ${munin_asyncd_spool} --host ${munin_asyncd_host} ${munin_asyncd_args} } +munin_asyncd_stop() +{ + kill `cat /var/run/munin_asyncd.pid` +} + run_rc_command $1