[Pkg-net-snmp-devel] Bug#615846: snmpd: init script using wrong return code on option "status"
ignace.mouzannar at enovance.com
Thu Apr 12 16:11:57 UTC 2012
On Mon, 2011-02-28 at 13:30 +0100, Michael Prokop wrote:
> Package: snmpd
> Version: 5.4.3~dfsg-2
> Severity: normal
> | If the status action is requested, the init script will return the following exit status codes.
> | 0 program is running or service is OK
> | 1 program is dead and /var/run pid file exists
> | 2 program is dead and /var/lock lock file exists
> | 3 program is not running
> | 4 program or service status is unknown
> -- http://refspecs.freestandards.org/LSB_3.1.0/LSB-Core-generic/LSB-Core-generic/iniscrptact.html
> snmpd's init script uses status_of_proc in the status option code
> but due to lack of pid files (see #611668) this seems to go wrong:
> # /etc/init.d/snmpd status
> snmpd is not running ... failed!
> snmptrapd is not running ... failed!
> # echo $?
I am unable to reproduce this on a freshly installed Squeeze, using the
same package version.
~# /etc/init.d/snmpd status
snmpd is not running ... failed!
snmptrapd is not running ... failed!
~# echo $?
ii snmpd 5.4.3~dfsg-2 SNMP
(Simple Network Management Protocol) agents
Are you still experiencing the same issue?
More information about the Pkg-net-snmp-devel