]> git.ipfire.org Git - ipfire-3.x.git/commitdiff
Renewed the initscripts.
authorMichael Tremer <michael.tremer@ipfire.org>
Sun, 31 Aug 2008 17:27:26 +0000 (17:27 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Sun, 31 Aug 2008 17:27:26 +0000 (17:27 +0000)
Thanks for help: DJ Lucas & Dan Nicholson

24 files changed:
config/etc/inittab
lfs/initscripts
src/initscripts/core/checkfs
src/initscripts/core/cleanfs
src/initscripts/core/console
src/initscripts/core/dbus [deleted file]
src/initscripts/core/haldaemon
src/initscripts/core/halt
src/initscripts/core/ipfire-functions
src/initscripts/core/localnet
src/initscripts/core/messagebus [new file with mode: 0644]
src/initscripts/core/modules
src/initscripts/core/mountfs
src/initscripts/core/mountkernfs
src/initscripts/core/network
src/initscripts/core/rc
src/initscripts/core/reboot
src/initscripts/core/sendsignals
src/initscripts/core/setclock
src/initscripts/core/swap
src/initscripts/core/sysctl
src/initscripts/core/sysklogd
src/initscripts/core/udev
src/initscripts/core/udev_retry

index 30f8d0d1bcf6c61b8a4dd11848cd8d2524efec9f..62afaba613b0bb1c3da9d6145f19c5e29c05f9de 100644 (file)
@@ -5,7 +5,7 @@
 
 id:3:initdefault:
 
-si::sysinit:/etc/init.d/rc sysinit
+si::sysinit:/etc/init.d/rc S
 
 l0:0:wait:/etc/init.d/rc 0
 l1:S1:wait:/etc/init.d/rc 1
index 046c61b73516cc23afc1dc5b65806798556825f2..e16ed4c952daef88b4bb537528e632820b95e779 100644 (file)
@@ -50,8 +50,10 @@ $(TARGET) :
        install -d -m 755 /etc/rc1.d
        install -d -m 755 /etc/rc2.d
        install -d -m 755 /etc/rc3.d
+       install -d -m 755 /etc/rc4.d
+       install -d -m 755 /etc/rc5.d
        install -d -m 755 /etc/rc6.d
-       install -d -m 755 /etc/rcsysinit.d
+       install -d -m 755 /etc/rcS.d
        install -d -m 755 /etc/init.d
        install -d -m 755 /etc/init.d/boottemp
        install -d -m 755 /etc/sysconfig
@@ -67,43 +69,7 @@ $(TARGET) :
        install -m 644 $(DIR_APP)/lsb/manage-functions /lib/lsb/
        install -m 644 $(DIR_APP)/etc/lsb-config /etc/lsb/
 
-#      ln -svf ../init.d/network     /etc/rc0.d/K80network
-       ln -svf ../init.d/sysklogd    /etc/rc0.d/K90sysklogd
-       ln -svf ../init.d/sendsignals /etc/rc0.d/S60sendsignals
-       ln -svf ../init.d/mountfs     /etc/rc0.d/S70mountfs
-       ln -svf ../init.d/swap        /etc/rc0.d/S80swap
-       ln -svf ../init.d/localnet    /etc/rc0.d/S90localnet
-       ln -svf ../init.d/halt        /etc/rc0.d/S99halt
-
-#      ln -svf ../init.d/network     /etc/rc1.d/K80network
-       ln -svf ../init.d/sysklogd    /etc/rc1.d/K90sysklogd
-
-#      ln -svf ../init.d/network     /etc/rc2.d/K80network
-       ln -svf ../init.d/sysklogd    /etc/rc2.d/K90sysklogd
-
-#      ln -svf ../init.d/network     /etc/rc3.d/S20network
-       ln -svf ../init.d/sysklogd    /etc/rc3.d/S10sysklogd
-
-#      ln -svf ../init.d/network     /etc/rc6.d/K80network
-       ln -svf ../init.d/sysklogd    /etc/rc6.d/K90sysklogd
-       ln -svf ../init.d/sendsignals /etc/rc6.d/S60sendsignals
-       ln -svf ../init.d/mountfs     /etc/rc6.d/S70mountfs
-       ln -svf ../init.d/swap        /etc/rc6.d/S80swap
-       ln -svf ../init.d/localnet    /etc/rc6.d/S90localnet
-       ln -svf ../init.d/reboot      /etc/rc6.d/S99reboot
-
-       ln -svf ../init.d/mountkernfs /etc/rcsysinit.d/S00mountkernfs
-       ln -svf ../init.d/sysctl      /etc/rcsysinit.d/S05sysctl
-       ln -svf ../init.d/modules     /etc/rcsysinit.d/S10modules
-       ln -svf ../init.d/udev        /etc/rcsysinit.d/S15udev
-       ln -svf ../init.d/swap        /etc/rcsysinit.d/S20swap
-       ln -svf ../init.d/setclock    /etc/rcsysinit.d/S25setclock
-       ln -svf ../init.d/checkfs     /etc/rcsysinit.d/S30checkfs
-       ln -svf ../init.d/mountfs     /etc/rcsysinit.d/S40mountfs
-       ln -svf ../init.d/udev_retry  /etc/rcsysinit.d/S45udev_retry
-       ln -svf ../init.d/cleanfs     /etc/rcsysinit.d/S50cleanfs
-       ln -svf ../init.d/console     /etc/rcsysinit.d/S70console
-       ln -svf ../init.d/localnet    /etc/rcsysinit.d/S80localnet
+       cd /etc/init.d && find . -type f -exec install_initd {} \;
 
        for i in $(DIR_SRC)/src/initscripts/sysconfig/*; do \
                install -v -m 644 $$i /etc/sysconfig/; \
index 5523d5e515d723afb0d45ca2d181d50454d24545..a7f12570811c8713d09d7e262279f8c10616fad1 100644 (file)
@@ -4,10 +4,10 @@
 ### BEGIN INIT INFO
 # Provides:            checkfs
 # Required-Start:      udev swap $time
-# Should-Start:        lvm
+# Should-Start:
 # Required-Stop:
 # Should-Stop:
-# Default-Start:       sysinit
+# Default-Start:       S
 # Default-Stop:
 # Short-Description:   Checks local filesystems before mounting.
 # Description:         Checks local filesystmes before mounting.
index b160fbc220d2e84bcd7169608645af0a05317cfe..b702eefbdbcf09c86fd54de0fccb33feacc363e7 100644 (file)
@@ -7,7 +7,7 @@
 # Should-Start:
 # Required-Stop:
 # Should-Stop:
-# Default-Start:       sysinit
+# Default-Start:       S
 # Default-Stop:        
 # Short-Description:   Cleans temporary directories early in the boot process.
 # Description:         Cleans temporary directories /var/run, /var/lock, and
index 87e392378eaf214fdcafc51d17f0f2b5532277b5..0717501254074e0286b49c7ceabb86c696715ba4 100644 (file)
@@ -7,7 +7,7 @@
 # Should-Start:        $local_fs
 # Required-Stop:
 # Should-Stop:
-# Default-Start:       sysinit
+# Default-Start:       S
 # Default-Stop:
 # Short-Description:   Sets up a localised console.
 # Description:         Sets up fonts and language settings for the user's 
diff --git a/src/initscripts/core/dbus b/src/initscripts/core/dbus
deleted file mode 100644 (file)
index fc719c9..0000000
+++ /dev/null
@@ -1,45 +0,0 @@
-#!/bin/sh
-# Begin $rc_base/init.d/messagebus
-
-# Based on sysklogd script from LFS-3.1 and earlier.
-# Rewritten by Gerard Beekmans  - gerard@linuxfromscratch.org
-
-#$LastChangedBy: dnicholson $
-#$Date: 2007-10-21 11:33:30 -0500 (Sun, 21 Oct 2007) $
-
-. /etc/sysconfig/rc
-. $rc_functions
-
-pidfile=/var/run/dbus/pid
-socket=/var/run/dbus/system_bus_socket
-
-case "$1" in
-        start)
-                boot_mesg "Starting the D-Bus Messagebus Daemon..."
-                /usr/bin/dbus-uuidgen --ensure
-                loadproc -p "$pidfile" /usr/bin/dbus-daemon --system
-                ;;
-
-        stop)
-                boot_mesg "Stopping the D-Bus Messagebus Daemon..."
-                killproc -p "$pidfile" /usr/bin/dbus-daemon
-                [ $? -eq 0 ] && rm -f "$socket"
-                ;;
-
-        restart)
-                $0 stop
-                sleep 1
-                $0 start
-                ;;
-
-        status)
-                statusproc -p $pidfile /usr/bin/dbus-daemon
-                ;;
-
-        *)
-                echo "Usage: $0 {start|stop|restart|status}"
-                exit 1
-                ;;
-esac
-
-# End $rc_base/init.d/messagebus
index 08aad7c19332484fa5fdac920e2913a30a43483c..3b0ecb574c8af40d443fc35a605d70d770b4442d 100644 (file)
@@ -1,42 +1,73 @@
 #!/bin/sh
-# Begin $rc_base/init.d/haldaemon
+# Begin /etc/init.d/haldaemon
 
-# Based on sysklogd script from LFS-3.1 and earlier.
-# Rewritten by Gerard Beekmans  - gerard@linuxfromscratch.org
+### BEGIN INIT INFO
+# Provides:            haldaemon
+# Required-Start:      messagebus
+# Should-Start:        $syslog
+# Required-Stop:       messagebus
+# Should-Stop:         $syslog
+# Default-Start:       2 3 4 5
+# Default-Stop:        0 1 6
+# Short-Description:   Hardware abstraction layer daemon.
+# Description:         Starts the hardware abstraction layer daemon.
+### END INIT INFO
 
-#$LastChangedBy: dnicholson $
-#$Date: 2007-10-21 11:33:35 -0500 (Sun, 21 Oct 2007) $
+. /lib/lsb/init-functions
 
-. /etc/sysconfig/rc
-. $rc_functions
+MESSAGE="HAL Daemon"
+BIN_FILE="/usr/sbin/hald"
 
 pidfile=/var/run/hald/pid
 
-case "$1" in
-       start)
-               boot_mesg "Starting the HAL Daemon..."
-               loadproc -p $pidfile /usr/sbin/hald --use-syslog
-               ;;
-
-       stop)
-               boot_mesg "Stopping the HAL Daemon..."
-               killproc -p $pidfile /usr/sbin/hald
-               ;;
-
-       restart)
-               $0 stop
-               sleep 1
-               $0 start
-               ;;
-
-       status)
-               statusproc -p $pidfile /usr/sbin/hald
-               ;;
-
-       *)
-               echo "Usage: $0 {start|stop|restart|status}"
-               exit 1
-               ;;
+chk_stat
+
+case "${1}" in
+    start)
+        start_daemon -p ${pidfile} "${BIN_FILE}" --use-syslog
+        evaluate_retval start
+        ;;
+
+    stop)
+        killproc -p ${pidfile} "${BIN_FILE}"
+        evaluate_retval stop
+        ;;
+
+    force-reload)
+        reloadproc -force
+        evaluate_retval force-reload
+        ;;
+
+    restart)
+        $0 stop
+        $0 start
+        ;;
+
+    status)
+        statusproc -p ${pidfile}
+        ;;
+
+    reload)
+        reloadproc
+        evaluate_retval reload
+        ;;
+
+    try-restart)
+        pidofproc "${BIN_FILE}" > /dev/null
+        if [ "${?}" -ne "0" ]; then
+            MESSAGE="${MESSAGE}: Not Running"
+        else
+            $0 stop
+            $0 start
+            exit 0
+        fi
+        evaluate_retval try-restart
+        ;;
+
+    *)
+        echo "Usage: ${0} {start|stop|{force-}reload|{try-}restart|status}"
+        exit 1
+        ;;
 esac
 
-# End $rc_base/init.d/haldaemon
+# End /etc/init.d/haldaemon
index 22c14d6a4faeece005af39d04ff85cb8708890b4..da933a12742f5fa56f9ce85abbd55531dad6e696 100644 (file)
@@ -5,7 +5,7 @@
 # Provides:            halt
 # Required-Start:
 # Should-Start:
-# Required-Stop:       localnet
+# Required-Stop:
 # Should-Stop:
 # Default-Start:       0
 # Default-Stop:
index 7d03ed1f559356ddb4346ac3b81cd3980e4ac0cb..e0a1580d71f7fa8d1d3db44932552948bd8e42d4 100644 (file)
@@ -80,7 +80,6 @@ statusproc()
     if [ "${STATUS}" = "0" ]; then
         log_success_msg "Running with PID(s) ${pidlist}"
     else
-        
         log_warning_msg "Not running!"
     fi
 
@@ -114,9 +113,6 @@ reloadproc()
         echo "Usage: 'reloadproc BIN_FILE MESSAGE'"
         exit 1 # Generic Error
     fi
-
-    
-
 }
 
 ############################## evaluate_retval() ###############################
index 1a68fe3a21b88ccf55948a567398dbfc0e588a7e..6dae531a0084ebfa0edf9b2464c6753d3ffb1a1d 100644 (file)
@@ -5,10 +5,10 @@
 # Provides:            localnet
 # Required-Start:      $local_fs
 # Should-Start:
-# Required-Stop:       $network
-# Should-Stop:         swap
-# Default-Start:       sysinit 0 6
-# Default-Stop:
+# Required-Stop:
+# Should-Stop:
+# Default-Start:       S
+# Default-Stop:        0 6
 # Short-Description:   Starts the local network.
 # Description:         Sets the hostname of the machine and starts the 
 #                      loopback interface.
diff --git a/src/initscripts/core/messagebus b/src/initscripts/core/messagebus
new file mode 100644 (file)
index 0000000..4b658d2
--- /dev/null
@@ -0,0 +1,76 @@
+#!/bin/sh
+# Begin /etc/init.d/messagebus
+
+### BEGIN INIT INFO
+# Provides:            messagebus
+# Required-Start:      $syslog
+# Should-Start:
+# Required-Stop:       $syslog
+# Should-Stop:
+# Default-Start:       2 3 4 5
+# Default-Stop:        1
+# Short-Description:   Messagebus Daemon.
+# Description:         Starts the dbus messagebus daemon.
+### END INIT INFO
+
+. /lib/lsb/init-functions
+
+MESSAGE="D-Bus Messagebus Daemon"
+BIN_FILE="/usr/bin/dbus-daemon"
+
+pidfile=/var/run/dbus/pid
+socket=/var/run/dbus/system_bus_socket
+
+chk_stat
+
+case "${1}" in
+    start)
+        /usr/bin/dbus-uuidgen --ensure
+        start_daemon -p ${pidfile} "${BIN_FILE}" --system
+        evaluate_retval start
+        ;;
+
+    stop)
+        killproc -p ${pidfile} "${BIN_FILE}"
+        evaluate_retval stop
+        rm -f "$socket" 2>/dev/null
+        ;;
+
+    force-reload)
+        reloadproc -force
+        evaluate_retval force-reload
+        ;;
+
+    restart)
+        $0 stop
+        $0 start
+        ;;
+
+    status)
+        statusproc -p ${pidfile}
+        ;;
+
+    reload)
+        reloadproc
+        evaluate_retval reload
+        ;;
+
+    try-restart)
+        pidofproc "${BIN_FILE}" > /dev/null
+        if [ "${?}" -ne "0" ]; then
+            MESSAGE="${MESSAGE}: Not Running"
+        else
+            $0 stop
+            $0 start
+            exit 0
+        fi
+        evaluate_retval try-restart
+        ;;
+
+    *)
+        echo "Usage: ${0} {start|stop|{force-}reload|{try-}restart|status}"
+        exit 1
+        ;;
+esac
+
+# End /etc/init.d/messagebus
index d5e1ad646db6401ec1517d74de5a1bf7b5beab05..35cb9f2d4a794075f38c1debe84de3536ce5db8b 100644 (file)
@@ -3,11 +3,11 @@
 
 ### BEGIN INIT INFO
 # Provides:            modules
-# Required-Start:      mountkernfs
-# Should-Start:        sysctl
+# Required-Start:      mountkernfs sysctl
+# Should-Start:
 # Required-Stop:
 # Should-Stop:
-# Default-Start:       sysinit
+# Default-Start:       S
 # Default-Stop:
 # Short-Description:   Loads required modules.
 # Description:         Loads modules listed in /etc/sysconfig/modules.
index 3d601a97483e57ee25274f513729a4dd97a3f20a..41fc41d68f02f28e93b75389d255b9db83532d61 100644 (file)
@@ -4,12 +4,12 @@
 ### BEGIN INIT INFO
 # Provides:            $local_fs
 # Required-Start:      udev checkfs
-# Should-Start:        lvm
-# Required-Stop:       sendsignals
+# Should-Start:
+# Required-Stop:       localnet
 # Should-Stop:
-# Default-Start:       sysinit 0 6
-# Default-Stop:
-# Short-Description:   Mounts and unmounts all local filesystems.
+# Default-Start:       S
+# Default-Stop:        0 6
+# Short-Description:   Mounts/unmounts local filesystems defined in /etc/fstab.
 # Description:         Remounts root filesystem read/write and mounts all
 #                      remaining local filesystems defined in /etc/fstab on
 #                      start.  Remounts root filesystem read-only and unmounts
index 6362b3db918dc0c5e250ab11188484de9644eb5a..aa985b976d1a5d7eb4b4619b73fa6442bffb4fe3 100644 (file)
@@ -7,7 +7,7 @@
 # Should-Start:
 # Required-Stop:
 # Should-Stop:
-# Default-Start:       sysinit
+# Default-Start:       S
 # Default-Stop:
 # Short-Description:   Mounts /sys and /proc virtual (kernel) filesystems.
 # Description:         Mounts /sys and /proc virtual (kernel) filesystems.
index 799f1861cc1a242c8a1073d645c319b97ee262b9..f3cecc9fbdc63fa33df344adb96fd6e24272b865 100644 (file)
@@ -4,9 +4,9 @@
 ### BEGIN INIT INFO
 # Provides:            $network
 # Required-Start:      $syslog
-# Should-Start:        
-# Required-Stop:
-# Should-Stop:         $remote_fs
+# Should-Start:
+# Required-Stop:       $syslog $local_fs swap localnet 
+# Should-Stop:
 # Default-Start:       3 4 5
 # Default-Stop:        0 1 2 6
 # Short-Description:   Starts and configures network interfaces.
@@ -31,7 +31,6 @@ case "${1}" in
                        then
                                continue
                        fi
-
                        IN_BOOT=1 ${NETWORK_DEVICES}/ifup ${interface}
                done
                ;;
index c9a0aa51e85237daae034f3776d900007280320b..75ddf8951fedfd60f88164cf07738de9fe68601d 100644 (file)
@@ -15,7 +15,7 @@ if [ "${#}" -ne 1 ]; then
 fi
 
 # Do not use the RUNLEVEL and PREVLEVEL variables provided by init so 
-# that they can be modified and alternate directories (sysinit) can 
+# that they can be modified and alternate directories (S) can 
 # be used without affecting init
 runlevel="${1}"
 prevlevel="${PREVLEVEL}"
@@ -26,12 +26,12 @@ if [ "${prevlevel}" = "" ]; then
 fi
 
 # Mount a tmpfs to store boot accounting information
-if [ "${runlevel}" = "sysinit" -a "${TEMPFS_MOUNT}" != "" ]; then
+if [ "${runlevel}" = "S" -a "${TEMPFS_MOUNT}" != "" ]; then
     mount -n -t tmpfs tmpfs "${TEMPFS_MOUNT}" -o mode=600
 fi
 
 # Provide an interactive prompt (if requested)
-if [ "${runlevel}" = "sysinit" -a "${iprompt}" = "yes" ]; then
+if [ "${runlevel}" = "S" -a "${iprompt}" = "yes" ]; then
     # ash does not accept t and n flags for read
     ls -l /bin/sh | grep "/ash"
     if [ "${?}" -eq "0" ]; then
@@ -66,12 +66,12 @@ if [ ! -d "${RC_BASE}/rc${runlevel}.d" ]; then
 fi
 
 # Source the interactive state file if it exists
-if [ "${runlevel}" != "sysinit" -a -f "${TEMPFS_MOUNT}/.interactive-start" ]; then
+if [ "${runlevel}" != "S" -a -f "${TEMPFS_MOUNT}/.interactive-start" ]; then
     . "${TEMPFS_MOUNT}/.interactive-start"
 fi
 
-# Prompt for interactive startup after completing sysinit
-if [ "${interactive}" = "I" -a "${runlevel}" != "sysinit" -a \
+# Prompt for interactive startup after completing S
+if [ "${interactive}" = "I" -a "${runlevel}" != "S" -a \
     "${runlevel}" != "0" -a "${runlevel}" != "6" ]; then
     echo -n -e "Proceed with interactive starup of runlevel "
     echo -n -e "${INFO}${runlevel}${NORMAL}?"
@@ -104,10 +104,10 @@ if [ "${prevlevel}" != "N" ]; then
 
         script=${link#$RC_BASE/rc$runlevel.d/K[0-9][0-9]}
         prev_start=$RC_BASE/rc$prevlevel.d/S[0-9][0-9]$script
-        sysinit_start=$RC_BASE/rcsysinit.d/S[0-9][0-9]$script
+        S_start=$RC_BASE/rcS.d/S[0-9][0-9]$script
 
         if [ "${runlevel}" != "0" -a "${runlevel}" != "6" ]; then
-            if [ ! -f ${prev_start} ] && [ ! -f ${sysinit_start} ]; then
+            if [ ! -f ${prev_start} ] && [ ! -f ${S_start} ]; then
                 echo -e -n "${WARNING}WARNING:\n\n${link} can't be"
                 echo -e "${WARNING} executed because it was not"
                 echo -e -n "${WARNING} not started in the previous"
@@ -180,14 +180,17 @@ done
 
 # Strip apply time to the logs, strip out any color codes and dump 
 # the log to /var/log/boot.log
-if [ -f "${TEMPFS_MOUNT}/.bootlog" -a "${runlevel}" != "sysinit" ]; then
+if [ -f "${TEMPFS_MOUNT}/.bootlog" -a "${runlevel}" != "S" ]; then
     # Remove any color codes from the temp log file
     sed -i 's@\\033\[[0-9];[0-9][0-9]m@@g' "${TEMPFS_MOUNT}/.bootlog"
     #Fix the time and hostname
     BTIMESPEC=$(echo `date +"%b %d %T"` `hostname`)
     sed -i "s@^bootlog:@${BTIMESPEC} bootlog:@" "${TEMPFS_MOUNT}/.bootlog"
-    cat "${TEMPFS_MOUNT}/.bootlog" >> /var/log/boot.log
-    rm -f "${TEMPFS_MOUNT}/.bootlog"
+    # Don't try and write in 0 and 6, this is a 'boot' log
+    if [ "${runlevel}" != "0" -a "${runlevel}" != "6" ]; then
+        cat "${TEMPFS_MOUNT}/.bootlog" >> /var/log/boot.log
+        rm -f "${TEMPFS_MOUNT}/.bootlog"
+    fi
 fi
 
 # End $RC_BASE/init.d/rc
index 6e6b71f8bcde4481b5e02d1afa56f741a898e915..0de939aca2c2f70bb4f5326c452ee0ccc7db4d20 100644 (file)
@@ -5,7 +5,7 @@
 # Provides:            reboot
 # Required-Start:
 # Should-Start:
-# Required-Stop:       localnet
+# Required-Stop:
 # Should-Stop:
 # Default-Start:       6
 # Default-Stop:
index 152cbfb2a627a3621c99f25f92dce6d9411fbde4..e48e19fb733b3d7d690abcb91844d97ae934ebd6 100644 (file)
@@ -5,10 +5,10 @@
 # Provides:            sendsignals
 # Required-Start:
 # Should-Start:
-# Required-Stop:       $syslog
+# Required-Stop:       $local_fs swap localnet
 # Should-Stop:
-# Default-Start:       0 6
-# Default-Stop:
+# Default-Start:
+# Default-Stop:        0 6
 # Short-Description:   Attempts to kill remaining processes.
 # Description:         Attempts to kill remaining processes.
 # X-LFS-Default-Start:
index a5237e9cbfc9ae03b5efaa23227b748b8d4c97a9..f9cf7a64edaffc36d3655f3ea5e3051861fdd1be 100644 (file)
@@ -3,18 +3,18 @@
 
 ### BEGIN INIT INFO
 # Provides:            $time
-# Required-Start:      udev
+# Required-Start:      modules
 # Should-Start:
-# Required-Stop:
+# Required-Stop:       $syslog
 # Should-Stop:
-# Default-Start:       sysinit
-# Default-Stop:        
+# Default-Start:       S
+# Default-Stop: 
 # Short-Description:   Stores and restores time from the hardware clock
 # Description:         On boot, system time is obtained from hwclock.  The
 #                      hardware clock can also be set on shutdown.
 # X-LFS-Default-Start: S25
-# X-LFS-Default-Stop:
-# X-LFS-Provided-By:   LFS
+# X-LFS-Default-Stop:  K46
+# X-LFS-Provided-By:   LFS BLFS
 ### END INIT INFO
 
 . /lib/lsb/init-functions
index 87c5f61c2d3cda6292d4c8c7b433e89cb78bcaf1..34f7a5a5e113a661f540b3b7fe344acdcb36d23a 100644 (file)
@@ -3,12 +3,12 @@
 
 ### BEGIN INIT INFO
 # Provides:            swap
-# Required-Start:      mountkernfs udev
-# Should-Start:        lvm
-# Required-Stop:       $local_fs
+# Required-Start:      modules
+# Should-Start:
+# Required-Stop:       localnet
 # Should-Stop:
-# Default-Start:       sysinit 0 6
-# Default-Stop:
+# Default-Start:       S
+# Default-Stop:        0 6
 # Short-Description:   Mounts and unmounts swap partitions.
 # Description:         Mounts and unmounts swap partitions defined in 
 #                      /etc/fstab.
index ae9efb8f564b0fa299686aa1faed4193a392ae2a..cbae2408b7da20d7a5f391e0d38f0f2efacb315a 100644 (file)
@@ -3,11 +3,11 @@
 
 ### BEGIN INIT INFO
 # Provides:            sysctl
-# Required-Start:      udev
+# Required-Start:      mountkernfs
 # Should-Start:
 # Required-Stop:
 # Should-Stop:
-# Default-Start:       sysinit
+# Default-Start:       S
 # Default-Stop:
 # Short-Description:   Makes changes to the proc filesystem
 # Description:         Makes changes to the proc filesystem as defined in
index 329349e819bf1ce3c64f037e347e2d2dc25ebd7e..cdfd9641e4d89dffcc7f644dda903f826667d018 100644 (file)
@@ -5,7 +5,7 @@
 # Provides:            $syslog
 # Required-Start:      localnet
 # Should-Start:
-# Required-Stop:       $network
+# Required-Stop:       $local_fs
 # Should-Stop:
 # Default-Start:       2 3 4 5
 # Default-Stop:        0 1 6
index 1aa80a3efd753fc68c97e8531d2b5e0b8f5da3e9..b7918a47b677d642df748ca9d7b09207d7296193 100644 (file)
@@ -3,11 +3,11 @@
 
 ### BEGIN INIT INFO
 # Provides:            udev
-# Required-Start:      mountkernfs
+# Required-Start:      modules
 # Should-Start:
 # Required-Stop:
 # Should-Stop:
-# Default-Start:       sysinit
+# Default-Start:       S
 # Default-Stop:
 # Short-Description:   Populated /dev with device nodes.
 # Description:         Mounts a tempfs on /dev and starts the udevd daemon.
index b87a7b3e9504b9464be957be40b408e795132122..df70132ebbc41ba41a4680f0fa78f01febbdf595 100644 (file)
@@ -7,7 +7,7 @@
 # Should-Start:        $local_fs
 # Required-Stop:
 # Should-Stop:
-# Default-Start:       sysinit
+# Default-Start:       S
 # Default-Stop:
 # Short-Description:   Replays failed uevents and creates additonal devices.
 # Description:         Replays any failed uevents that were skipped due to