[Pkg-net-snmp-commits] r104 - branches/net-snmp53/debian trunk/debian

Jochen Friedrich jochen at alioth.debian.org
Fri Nov 24 12:35:20 CET 2006


Author: jochen
Date: 2006-11-24 12:35:20 +0100 (Fri, 24 Nov 2006)
New Revision: 104

Modified:
   branches/net-snmp53/debian/snmpd.init
   branches/net-snmp53/debian/watch
   trunk/debian/snmpd.init
   trunk/debian/watch
Log:
Enable uupdate and add LSB section to init file (import R99,R100)


Modified: branches/net-snmp53/debian/snmpd.init
===================================================================
--- branches/net-snmp53/debian/snmpd.init	2006-11-23 18:04:47 UTC (rev 103)
+++ branches/net-snmp53/debian/snmpd.init	2006-11-24 11:35:20 UTC (rev 104)
@@ -1,5 +1,17 @@
-#! /bin/sh
-# /etc/init.d/snmpd: start snmp daemon.
+#! /bin/sh -e
+### BEGIN INIT INFO
+# Provides:           snmpd snmptrapd
+# Required-Start:     $network $local_fs
+# Required-Stop:      $network $local_fs
+# Default-Start:      2 3 4 5
+# Default-Stop:       0 6
+# Short-Description:  SNMP agents
+# Description:        NET SNMP (Simple Network Management Protocol) Agents
+### END INIT INFO
+#
+# Author:    Jochen Friedrich <jochen at scram.de>
+#
+set -e
 
 test -x /usr/sbin/snmpd || exit 0
 test -x /usr/sbin/snmptrapd || exit 0
@@ -34,9 +46,9 @@
     ;;
   stop)
     echo -n "Stopping network management services:"
-    start-stop-daemon --quiet --stop --exec /usr/sbin/snmpd
+    start-stop-daemon --quiet --stop --oknodo --exec /usr/sbin/snmpd
     echo -n " snmpd"
-    start-stop-daemon --quiet --stop --exec /usr/sbin/snmptrapd
+    start-stop-daemon --quiet --stop --oknodo --exec /usr/sbin/snmptrapd
     echo -n " snmptrapd"
     echo "."
     ;;

Modified: branches/net-snmp53/debian/watch
===================================================================
--- branches/net-snmp53/debian/watch	2006-11-23 18:04:47 UTC (rev 103)
+++ branches/net-snmp53/debian/watch	2006-11-24 11:35:20 UTC (rev 104)
@@ -1,2 +1,2 @@
 version=3
-http://sf.net/net-snmp/net-snmp-([\d+\.]+|\d+)\.tar\.gz
+http://sf.net/net-snmp/net-snmp-([\d+\.]+|\d+)\.tar\.gz debian uupdate

Modified: trunk/debian/snmpd.init
===================================================================
--- trunk/debian/snmpd.init	2006-11-23 18:04:47 UTC (rev 103)
+++ trunk/debian/snmpd.init	2006-11-24 11:35:20 UTC (rev 104)
@@ -1,5 +1,17 @@
-#! /bin/sh
-# /etc/init.d/snmpd: start snmp daemon.
+#! /bin/sh -e
+### BEGIN INIT INFO
+# Provides:           snmpd snmptrapd
+# Required-Start:     $network $local_fs
+# Required-Stop:      $network $local_fs
+# Default-Start:      2 3 4 5
+# Default-Stop:       0 6
+# Short-Description:  SNMP agents
+# Description:        NET SNMP (Simple Network Management Protocol) Agents
+### END INIT INFO
+#
+# Author:    Jochen Friedrich <jochen at scram.de>
+#
+set -e
 
 test -x /usr/sbin/snmpd || exit 0
 test -x /usr/sbin/snmptrapd || exit 0
@@ -34,9 +46,9 @@
     ;;
   stop)
     echo -n "Stopping network management services:"
-    start-stop-daemon --quiet --stop --exec /usr/sbin/snmpd
+    start-stop-daemon --quiet --stop --oknodo --exec /usr/sbin/snmpd
     echo -n " snmpd"
-    start-stop-daemon --quiet --stop --exec /usr/sbin/snmptrapd
+    start-stop-daemon --quiet --stop --oknodo --exec /usr/sbin/snmptrapd
     echo -n " snmptrapd"
     echo "."
     ;;

Modified: trunk/debian/watch
===================================================================
--- trunk/debian/watch	2006-11-23 18:04:47 UTC (rev 103)
+++ trunk/debian/watch	2006-11-24 11:35:20 UTC (rev 104)
@@ -1,2 +1,2 @@
 version=3
-http://sf.net/net-snmp/net-snmp-([\d+\.]+|\d+)\.tar\.gz
+http://sf.net/net-snmp/net-snmp-([\d+\.]+|\d+)\.tar\.gz debian uupdate




More information about the Pkg-net-snmp-commits mailing list