]> git.pld-linux.org Git - projects/rc-scripts.git/commitdiff
nicely stop, without error
authorElan Ruusamäe <glen@pld-linux.org>
Thu, 15 Dec 2011 18:17:23 +0000 (18:17 +0000)
committerElan Ruusamäe <glen@pld-linux.org>
Thu, 15 Dec 2011 18:17:23 +0000 (18:17 +0000)
svn-id: @12454

init/allowlogin.conf
init/cpusets.conf
init/sys-chroots.conf

index 5f93ef332fc755735190484b5daf78d0e8a0a0b2..368011af9ab839727ad37cce25dd428c3fe7056f 100644 (file)
@@ -13,7 +13,7 @@ pre-start script
                yes|Yes|YES|true|True|TRUE|on|On|ON|Y|y|1)
                ;;
        *)
-               exit 1
+               /sbin/initctl -q stop
                ;;
        esac
 end script
index a57c65bc3048f0a56ceee80e50595576461b8c40..a1c616acec6f5827840be78a511a6c4338448c7d 100644 (file)
@@ -10,7 +10,7 @@ pre-start script
        # test that cpusets are configured
        . /etc/sysconfig/system
        if [ "${CPUSETS:-no}" = "no" ]; then
-               exit 3
+               /sbin/initctl -q stop
        fi
 end script
 
index b4ff1e728cd6e1cfc5f6e881411f2f79abe5b9a6..1d7e29ecbf3a43793f7b20ab5c9f1c7fc557678a 100644 (file)
@@ -9,7 +9,7 @@ task
 pre-start script
        # test that chroots are configured
        . /etc/sysconfig/system
-       test -n "$SYSTEM_CHROOTS"
+       test -n "$SYSTEM_CHROOTS" || /sbin/initctl -q stop
 end script
 
 script
This page took 0.38003 seconds and 4 git commands to generate.