Lines 12-21
Link Here
|
12 |
name="nsca" |
12 |
name="nsca" |
13 |
rcvar=`set_rcvar` |
13 |
rcvar=`set_rcvar` |
14 |
|
14 |
|
15 |
command="%%PREFIX%%/libexec/nagios/nsca" |
15 |
command="%%PREFIX%%/sbin/nsca" |
16 |
pidfile="/var/spool/nagios/nsca.lock" |
16 |
pidfile="/var/run/nsca.pid" |
17 |
nsca_user="nagios" |
17 |
extra_commands=reload |
18 |
extra_commands="restart" |
|
|
19 |
|
18 |
|
20 |
nsca_enable=${nsca_enable:-"NO"} |
19 |
nsca_enable=${nsca_enable:-"NO"} |
21 |
nsca_flags=${nsca_flags:-"--single"} |
20 |
nsca_flags=${nsca_flags:-"--single"} |
Lines 24-29
Link Here
|
24 |
load_rc_config "${name}" |
23 |
load_rc_config "${name}" |
25 |
|
24 |
|
26 |
required_files="${nsca_configfile}" |
25 |
required_files="${nsca_configfile}" |
27 |
command_args="-c ${nsca_configfile} ${nsca_flags}" |
26 |
command_args="-c ${nsca_configfile}" |
28 |
|
27 |
|
29 |
run_rc_command "$1" |
28 |
run_rc_command "$1" |