Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 273827
Collapse All | Expand All

(-)file_not_specified_in_diff (-3 / +15 lines)
Line  Link Here
0
-- snmpd_orig  2009-06-12 10:45:41.000000000 +0200
0
++ snmpd   2009-06-12 10:58:16.000000000 +0200
Lines 3-8 Link Here
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.rc7,v 1.1 2006/11/26 21:37:22 cedk Exp $
4
# $Header: /var/cvsroot/gentoo-x86/net-analyzer/net-snmp/files/snmpd.rc7,v 1.1 2006/11/26 21:37:22 cedk Exp $
5
opts="${opts} reload"
6
5
depend() {
7
depend() {
6
   use logger
8
   use logger
7
   need net
9
   need net
Lines 15-30 Link Here
15
   fi
17
   fi
16
}
18
}
19
reload() {
20
   if service_started "${SVCNAME}" ; then
21
       ebegin "Reloading net-snmpd configuration"
22
       kill -HUP $(</var/run/snmpd.pid)
23
       eend $?
24
   else
25
       eerror "${SVCNAME} is not marked as started"
26
   fi
27
}
28
17
start() {
29
start() {
18
   checkconfig || return 1
30
   checkconfig || return 1
19
   ebegin "Starting net-snmpd"
31
   ebegin "Starting ${SVCNAME}"
20
   start-stop-daemon --start --quiet --exec /usr/sbin/snmpd \
32
   start-stop-daemon --start --quiet --exec /usr/sbin/snmpd \
21
       -- -p /var/run/snmpd.pid ${SNMPD_FLAGS}
33
       -- -p /var/run/snmpd.pid ${SNMPD_FLAGS}
22
   eend $?
34
   eend $?
23
}
35
}
24
stop() {
36
stop() {
25
   ebegin "Stopping net-snmpd"
37
   ebegin "Stopping ${SVCNAME}"
26
   start-stop-daemon --stop --quiet --pidfile /var/run/snmpd.pid
38
   start-stop-daemon --stop --quiet --pidfile /var/run/snmpd.pid
27
   eend $?
39
   eend $?
28
}
40
}

Return to bug 273827