Line
Link Here
|
0 |
-- nagios |
0 |
++ nagios |
Lines 1-9
Link Here
|
1 |
#!/sbin/runscript |
1 |
#!/sbin/runscript |
2 |
# Copyright 1999-2004 Gentoo Foundation |
2 |
# Copyright 1999-2011 Gentoo Foundation |
3 |
# Distributed under the terms of the GNU General Public License v2 |
3 |
# Distributed under the terms of the GNU General Public License v2 |
4 |
# $Header: /var/cvsroot/gentoo-x86/net-analyzer/nagios-core/files/nagios3,v 1.1 2008/04/27 18:41:25 dertobi123 Exp $ |
4 |
# $Header: /var/cvsroot/gentoo-x86/net-analyzer/nagios-core/files/nagios3,v 1.1 2008/04/27 18:41:25 dertobi123 Exp $ |
5 |
|
5 |
|
6 |
opts="${opts} reload checkconfig" |
6 |
extra_commands="checkconfig" |
|
|
7 |
extra_started_commands="reload" |
7 |
|
8 |
|
8 |
depend() { |
9 |
depend() { |
9 |
need net |
10 |
need net |
Lines 15-21
Link Here
|
15 |
{ |
16 |
{ |
16 |
checkconfig || return 1 |
17 |
checkconfig || return 1 |
17 |
ebegin "Reloading configuration" |
18 |
ebegin "Reloading configuration" |
18 |
killall -HUP nagios &>/dev/null |
19 |
start-stop-daemon --signal HUP --pidfile /var/nagios/nagios.lock |
19 |
eend $? |
20 |
eend $? |
20 |
} |
21 |
} |
21 |
|
22 |
|
Lines 34-40
Link Here
|
34 |
touch /var/nagios/nagios.log /var/nagios/status.sav |
35 |
touch /var/nagios/nagios.log /var/nagios/status.sav |
35 |
chown nagios:nagios /var/nagios/nagios.log /var/nagios/status.sav |
36 |
chown nagios:nagios /var/nagios/nagios.log /var/nagios/status.sav |
36 |
rm -f /var/nagios/rw/nagios.cmd |
37 |
rm -f /var/nagios/rw/nagios.cmd |
37 |
start-stop-daemon --quiet --start --startas /usr/sbin/nagios \ |
38 |
start-stop-daemon --quiet --start --exec /usr/sbin/nagios \ |
38 |
-e HOME="/var/nagios/home" --pidfile /var/nagios/nagios.lock \ |
39 |
-e HOME="/var/nagios/home" --pidfile /var/nagios/nagios.lock \ |
39 |
-- -d /etc/nagios/nagios.cfg |
40 |
-- -d /etc/nagios/nagios.cfg |
40 |
eend $? |
41 |
eend $? |