[Pkg-net-snmp-commits] r262 - branches/net-snmp54/debian branches/net-snmp54-dev/debian trunk/debian
jochen at alioth.debian.org
jochen at alioth.debian.org
Thu Dec 11 19:29:51 UTC 2008
Author: jochen
Date: 2008-12-11 19:29:51 +0000 (Thu, 11 Dec 2008)
New Revision: 262
Modified:
branches/net-snmp54-dev/debian/snmpd.init
branches/net-snmp54/debian/snmpd.init
trunk/debian/snmpd.init
Log:
Don't fail start action if daemon is already running.
Modified: branches/net-snmp54/debian/snmpd.init
===================================================================
--- branches/net-snmp54/debian/snmpd.init 2008-11-03 16:54:30 UTC (rev 261)
+++ branches/net-snmp54/debian/snmpd.init 2008-12-11 19:29:51 UTC (rev 262)
@@ -40,12 +40,12 @@
start)
echo -n "Starting network management services:"
if [ "$SNMPDRUN" = "yes" -a -f /etc/snmp/snmpd.conf ]; then
- start-stop-daemon --quiet --start --exec /usr/sbin/snmpd \
+ start-stop-daemon --quiet --start --oknodo --exec /usr/sbin/snmpd \
-- $SNMPDOPTS
echo -n " snmpd"
fi
if [ "$TRAPDRUN" = "yes" -a -f /etc/snmp/snmptrapd.conf ]; then
- start-stop-daemon --quiet --start --exec /usr/sbin/snmptrapd \
+ start-stop-daemon --quiet --start --oknodo --exec /usr/sbin/snmptrapd \
-- $TRAPDOPTS
echo -n " snmptrapd"
fi
Modified: branches/net-snmp54-dev/debian/snmpd.init
===================================================================
--- branches/net-snmp54-dev/debian/snmpd.init 2008-11-03 16:54:30 UTC (rev 261)
+++ branches/net-snmp54-dev/debian/snmpd.init 2008-12-11 19:29:51 UTC (rev 262)
@@ -40,12 +40,12 @@
start)
echo -n "Starting network management services:"
if [ "$SNMPDRUN" = "yes" -a -f /etc/snmp/snmpd.conf ]; then
- start-stop-daemon --quiet --start --exec /usr/sbin/snmpd \
+ start-stop-daemon --quiet --start --oknodo --exec /usr/sbin/snmpd \
-- $SNMPDOPTS
echo -n " snmpd"
fi
if [ "$TRAPDRUN" = "yes" -a -f /etc/snmp/snmptrapd.conf ]; then
- start-stop-daemon --quiet --start --exec /usr/sbin/snmptrapd \
+ start-stop-daemon --quiet --start --oknodo --exec /usr/sbin/snmptrapd \
-- $TRAPDOPTS
echo -n " snmptrapd"
fi
Modified: trunk/debian/snmpd.init
===================================================================
--- trunk/debian/snmpd.init 2008-11-03 16:54:30 UTC (rev 261)
+++ trunk/debian/snmpd.init 2008-12-11 19:29:51 UTC (rev 262)
@@ -35,12 +35,12 @@
start)
echo -n "Starting network management services:"
if [ "$SNMPDRUN" = "yes" -a -f /etc/snmp/snmpd.conf ]; then
- start-stop-daemon --quiet --start --exec /usr/sbin/snmpd \
+ start-stop-daemon --quiet --start --oknodo --exec /usr/sbin/snmpd \
-- $SNMPDOPTS
echo -n " snmpd"
fi
if [ "$TRAPDRUN" = "yes" -a -f /etc/snmp/snmptrapd.conf ]; then
- start-stop-daemon --quiet --start --exec /usr/sbin/snmptrapd \
+ start-stop-daemon --quiet --start --oknodo --exec /usr/sbin/snmptrapd \
-- $TRAPDOPTS
echo -n " snmptrapd"
fi
More information about the Pkg-net-snmp-commits
mailing list