I'm having a similar issue. Running Debian GNU/Linux Squeeze 6.0.4 amd64. Example :
# /etc/init.d/snmpd status ; echo "return=$?" snmpd is running. return=1 Checked, and the daemon is running. I modified the init script like below, and it seems to have a correct behavior. --- /etc/init.d/snmpd.ori 2012-04-17 19:20:39.750254528 +0200 +++ /etc/init.d/snmpd 2012-04-17 19:26:41.229430137 +0200 @@ -90,8 +90,8 @@ ;; status) status=0 - [ "$SNMPDRUN" = "yes" ] && status_of_proc /usr/sbin/snmpd snmpd || status=$? - [ "$TRAPDRUN" = "yes" ] && status_of_proc /usr/sbin/snmptrapd || status=$? + [ "$SNMPDRUN" = "yes" ] && ( status_of_proc /usr/sbin/snmpd snmpd || status=$? ) + [ "$TRAPDRUN" = "yes" ] && ( status_of_proc /usr/sbin/snmptrapd || status=$? ) exit $status ;; *) -- ----------------------------------------------------------------------- ¦ Florent Charton ¦ /v\ ¦ Poste 11 64 - Bureau TG017 ¦ ¦ EISTI - Ing Sys & Rsx ¦ // \\ ¦ Pt. : +33 6 78 18 67 08 ¦ ¦ http://www.eisti.fr/ ¦ /( )\ ¦ Tel. : +33 1 34 25 84 19 ¦ ---------------------------- ^^-^^ ---------------------------------- -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org