[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#346598: init script stop example should use --oknodo



Package: debian-policy
Version: 3.6.2.2

According to the LSB Core Specification 3.1, init scripts should
consider running stop on a service already stopped or not running
successful, but the example in policy does not behave this way because
it does not pass --oknodo to start-stop-daemon in the stop case.  The
attached patch makes it do so.

-- 
Matt
diff -ru debian-policy-3.6.2.2.orig/policy.sgml debian-policy-3.6.2.2/policy.sgml
--- debian-policy-3.6.2.2.orig/policy.sgml	2006-01-08 16:30:46.000000000 -0800
+++ debian-policy-3.6.2.2/policy.sgml	2006-01-08 16:31:14.000000000 -0800
@@ -5746,7 +5746,7 @@
   ;;
 stop)
   echo -n "Stopping domain name service: named"
-  start-stop-daemon --stop --quiet  \
+  start-stop-daemon --stop --quiet --oknodo \
     --pidfile /var/run/named.pid --exec /usr/sbin/named
   echo "."
   ;;

Attachment: signature.asc
Description: Digital signature


Reply to: