Lines 23-40
Link Here
|
23 |
|
23 |
|
24 |
load_rc_config $name |
24 |
load_rc_config $name |
25 |
|
25 |
|
26 |
: ${munin_asyncd_enable:=NO} |
26 |
start_cmd="${name}_start" |
27 |
: ${munin_asyncd_spool:=/var/spool/munin/async} |
27 |
stop_cmd="${name}_stop" |
28 |
: ${munin_asyncd_host:=localhost:4949} |
|
|
29 |
|
28 |
|
30 |
command="/usr/local/share/munin/munin-asyncd" |
29 |
command="/usr/local/share/munin/munin-asyncd" |
31 |
command_interpreter="/usr/local/bin/perl" |
30 |
command_interpreter="/usr/local/bin/perl" |
32 |
pidfile="/var/run/${name}.pid" |
31 |
pidfile="/var/run/${name}.pid" |
33 |
|
32 |
|
34 |
start_cmd() |
33 |
: ${munin_asyncd_enable:=NO} |
|
|
34 |
: ${munin_asyncd_spool:=/var/spool/munin/async} |
35 |
: ${munin_asyncd_host:=localhost:4949} |
36 |
|
37 |
munin_asyncd_start() |
35 |
{ |
38 |
{ |
36 |
check_startmsgs && echo "Starting ${name}." |
39 |
check_startmsgs && echo "Starting ${name}." |
37 |
daemon -u munin -f -p ${pidfile} ${command_interpreter} ${command} --spool ${munin_asyncd_spool} --host ${munin_asyncd_host} ${munin_asyncd_args} |
40 |
daemon -u munin -f -p ${pidfile} ${command_interpreter} ${command} --spool ${munin_asyncd_spool} --host ${munin_asyncd_host} ${munin_asyncd_args} |
38 |
} |
41 |
} |
39 |
|
42 |
|
|
|
43 |
munin_asyncd_stop() |
44 |
{ |
45 |
kill `cat /var/run/munin_asyncd.pid` |
46 |
} |
47 |
|
40 |
run_rc_command $1 |
48 |
run_rc_command $1 |