Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 194349 Details for
Bug 273827
net-snmp-5.4.2.1 initscript reload enhancement
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch for /etc/init.d/snmpd (adds reload support)
snmpd-init.patch (text/plain), 1016 bytes, created by
Georg Weiss
on 2009-06-12 09:04:40 UTC
(
hide
)
Description:
patch for /etc/init.d/snmpd (adds reload support)
Filename:
MIME Type:
Creator:
Georg Weiss
Created:
2009-06-12 09:04:40 UTC
Size:
1016 bytes
patch
obsolete
>--- snmpd_orig 2009-06-12 10:45:41.000000000 +0200 >+++ snmpd 2009-06-12 10:58:16.000000000 +0200 >@@ -3,6 +3,8 @@ > # Distributed under the terms of the GNU General Public License v2 > # $Header: /var/cvsroot/gentoo-x86/net-analyzer/net-snmp/files/snmpd.rc7,v 1.1 2006/11/26 21:37:22 cedk Exp $ > >+opts="${opts} reload" >+ > depend() { > use logger > need net >@@ -15,16 +17,26 @@ > fi > } > >+reload() { >+ if service_started "${SVCNAME}" ; then >+ ebegin "Reloading net-snmpd configuration" >+ kill -HUP $(</var/run/snmpd.pid) >+ eend $? >+ else >+ eerror "${SVCNAME} is not marked as started" >+ fi >+} >+ > start() { > checkconfig || return 1 >- ebegin "Starting net-snmpd" >+ ebegin "Starting ${SVCNAME}" > start-stop-daemon --start --quiet --exec /usr/sbin/snmpd \ > -- -p /var/run/snmpd.pid ${SNMPD_FLAGS} > eend $? > } > > stop() { >- ebegin "Stopping net-snmpd" >+ ebegin "Stopping ${SVCNAME}" > start-stop-daemon --stop --quiet --pidfile /var/run/snmpd.pid > eend $? > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 273827
: 194349