]> git.pld-linux.org Git - projects/rc-scripts.git/commitdiff
Probability that there exists init.d/$subsys is bigger than init.d/$subsys.init.
authorElan Ruusamäe <glen@pld-linux.org>
Thu, 7 Dec 2006 21:31:09 +0000 (21:31 +0000)
committerElan Ruusamäe <glen@pld-linux.org>
Thu, 7 Dec 2006 21:31:09 +0000 (21:31 +0000)
svn-id: @8077

rc.d/init.d/killall

index 1e1a920174f4dad7b1b87d67dec5d3cf29469b8b..18ff2e1f89bbd2cb2e55fe0d5ff6dc26afd395e8 100644 (file)
@@ -21,10 +21,10 @@ case "$1" in
                subsys=${i#/var/lock/subsys/}
 
                # Bring the subsystem down.
-               if [ -f /etc/rc.d/init.d/$subsys.init ]; then
-                       /etc/rc.d/init.d/$subsys.init stop
-               else
+               if [ -x /etc/rc.d/init.d/$subsys ]; then
                        /etc/rc.d/init.d/$subsys stop
+               elif [ -x /etc/rc.d/init.d/$subsys.init ]; then
+                       /etc/rc.d/init.d/$subsys.init stop
                fi
        done
        ;;
This page took 0.053719 seconds and 4 git commands to generate.