[Pkg-sysvinit-commits] r1171 - in sysvinit/trunk/debian: . initscripts initscripts/etc/init.d

pere at alioth.debian.org pere at alioth.debian.org
Tue Jan 1 15:57:23 UTC 2008


Author: pere
Date: 2008-01-01 15:57:21 +0000 (Tue, 01 Jan 2008)
New Revision: 1171

Modified:
   sysvinit/trunk/debian/changelog
   sysvinit/trunk/debian/initscripts/conffiles
   sysvinit/trunk/debian/initscripts/etc/init.d/killprocs
   sysvinit/trunk/debian/initscripts/etc/init.d/stop-bootlogd-single
   sysvinit/trunk/debian/initscripts/postinst
Log:
  * Moved the stop-bootlogd-single script from rcS.d/ to rc1.d, just
    before killprocs.  Let killprocs list is as a start dependency.
    Simplify script as it is only executed in single user now.

Modified: sysvinit/trunk/debian/changelog
===================================================================
--- sysvinit/trunk/debian/changelog	2008-01-01 11:07:55 UTC (rev 1170)
+++ sysvinit/trunk/debian/changelog	2008-01-01 15:57:21 UTC (rev 1171)
@@ -9,6 +9,9 @@
     order in the boot.
   * Removed stop dependencies for bootmisc.sh.  Its stop operation is
     a no-op, and it is not run in any level to stop.
+  * Moved the stop-bootlogd-single script from rcS.d/ to rc1.d, just
+    before killprocs.  Let killprocs list is as a start dependency.
+    Simplify script as it is only executed in single user now.
 
  -- Petter Reinholdtsen <pere at debian.org>  Mon, 31 Dec 2007 12:18:42 +0100
 

Modified: sysvinit/trunk/debian/initscripts/conffiles
===================================================================
--- sysvinit/trunk/debian/initscripts/conffiles	2008-01-01 11:07:55 UTC (rev 1170)
+++ sysvinit/trunk/debian/initscripts/conffiles	2008-01-01 15:57:21 UTC (rev 1171)
@@ -1,6 +1,5 @@
 /etc/init.d/bootlogd
 /etc/init.d/stop-bootlogd
-/etc/init.d/stop-bootlogd-single
 /etc/init.d/bootmisc.sh
 /etc/init.d/checkfs.sh
 /etc/init.d/checkroot.sh

Modified: sysvinit/trunk/debian/initscripts/etc/init.d/killprocs
===================================================================
--- sysvinit/trunk/debian/initscripts/etc/init.d/killprocs	2008-01-01 11:07:55 UTC (rev 1170)
+++ sysvinit/trunk/debian/initscripts/etc/init.d/killprocs	2008-01-01 15:57:21 UTC (rev 1171)
@@ -1,7 +1,7 @@
 #! /bin/sh
 ### BEGIN INIT INFO
 # Provides:          killprocs
-# Required-Start:    $local_fs
+# Required-Start:    $local_fs stop-bootlogd-single
 # Required-Stop:
 # Default-Start:     1
 # Default-Stop:

Modified: sysvinit/trunk/debian/initscripts/etc/init.d/stop-bootlogd-single
===================================================================
--- sysvinit/trunk/debian/initscripts/etc/init.d/stop-bootlogd-single	2008-01-01 11:07:55 UTC (rev 1170)
+++ sysvinit/trunk/debian/initscripts/etc/init.d/stop-bootlogd-single	2008-01-01 15:57:21 UTC (rev 1171)
@@ -1,15 +1,14 @@
 #! /bin/sh
 ### BEGIN INIT INFO
 # Provides:          stop-bootlogd-single
-# Required-Start:    $remote_fs $all
+# Required-Start:    $remote_fs
 # Required-Stop:
-# Default-Start:     S
+# Default-Start:     1
 # Default-Stop:
 # Short-Description: Stop bootlogd in single user mode
 # Description:       See the bootlogd script
 ### END INIT INFO
 
-PATH=/sbin:/usr/sbin:/bin:/usr/bin
 NAME=stop-bootlogd-single
 DAEMON=/sbin/bootlogd
 
@@ -17,17 +16,7 @@
 
 case "$1" in
   start)
-	single=false
-	for word in $(cat /proc/cmdline); do
-		case "$word" in
-		S|single|1)
-			single=true
-		;;
-		esac
-	done
-	if [ true = "$single" ] ; then
-		/etc/init.d/bootlogd stop
-	fi
+	/etc/init.d/bootlogd stop
 	;;
   stop|restart|force-reload)
 	# No-op

Modified: sysvinit/trunk/debian/initscripts/postinst
===================================================================
--- sysvinit/trunk/debian/initscripts/postinst	2008-01-01 11:07:55 UTC (rev 1170)
+++ sysvinit/trunk/debian/initscripts/postinst	2008-01-01 15:57:21 UTC (rev 1171)
@@ -108,6 +108,15 @@
 fi
 
 #
+# In 2.86.ds1-48 the "stop-bootlogd-single" script were moved from
+# rcS.d to rc1.d.
+#
+if dpkg --compare-versions "$PREV_VER" lt "2.86.ds1-48"
+then
+	update-rc.d -f stop-bootlogd-single remove >/dev/null 2>&1 || :
+fi
+
+#
 # Okay, we could do this with update-rc.d, but that would probably
 # be pretty slow. This way we win some speed.
 # DO NOT FOLLOW THIS EXAMPLE IN OTHER PACKAGES.
@@ -138,11 +147,11 @@
 updatercd umountnfs.sh           start 31 0 6 .
 updatercd sendsigs               start 20 0 6 .
 
+updatercd stop-bootlogd-single   start 29 1 .
 updatercd killprocs              start 30 1 .
 updatercd single                 start 90 1 .
 updatercd rc.local               start 99 2 3 4 5 .
 updatercd rmnologin              start 99 2 3 4 5 .
-updatercd stop-bootlogd-single   start 99 S .
 updatercd stop-bootlogd          start 99 2 3 4 5 .
 
 #




More information about the Pkg-sysvinit-commits mailing list