Line
Link Here
|
0 |
-- snmpd.init |
0 |
++ snmpd.init |
Lines 1-9
Link Here
|
1 |
#!/sbin/runscript |
1 |
#!/sbin/runscript |
2 |
# Copyright 1999-2009 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/net-snmp/files/snmpd.init,v 1.1 2009/10/16 08:51:05 gengor Exp $ |
4 |
# $Header: /var/cvsroot/gentoo-x86/net-analyzer/net-snmp/files/snmpd.init,v 1.1 2009/10/16 08:51:05 gengor Exp $ |
5 |
|
5 |
|
6 |
opts="${opts} reload" |
6 |
extra_started_commands="reload" |
7 |
|
7 |
|
8 |
depend() { |
8 |
depend() { |
9 |
use logger |
9 |
use logger |
Lines 35-47
Link Here
|
35 |
|
35 |
|
36 |
reload() { |
36 |
reload() { |
37 |
checkconfig || return 1 |
37 |
checkconfig || return 1 |
38 |
if [ ! -f ${SNMPD_PIDFILE} ]; then |
|
|
39 |
eerror "Cannot reload configuration, ${SVCNAME} is not running" |
40 |
eend 1 |
41 |
return 1 |
42 |
fi |
43 |
|
38 |
|
44 |
ebegin "Reloading ${SVCNAME} configuration" |
39 |
ebegin "Reloading ${SVCNAME} configuration" |
45 |
kill -HUP $(< ${SNMPD_PIDFILE}) &>/dev/null |
40 |
start-stop-daemon --signal HUP --pidfile ${SNMPD_PIDFILE} |
46 |
eend $? |
41 |
eend $? |
47 |
} |
42 |
} |