SVN: rc-scripts/trunk/rc.d/init.d/killall

glen glen at pld-linux.org
Thu Dec 7 22:31:10 CET 2006


Author: glen
Date: Thu Dec  7 22:31:09 2006
New Revision: 8077

Modified:
   rc-scripts/trunk/rc.d/init.d/killall
Log:
Probability that there exists init.d/$subsys is bigger than init.d/$subsys.init.

Modified: rc-scripts/trunk/rc.d/init.d/killall
==============================================================================
--- rc-scripts/trunk/rc.d/init.d/killall	(original)
+++ rc-scripts/trunk/rc.d/init.d/killall	Thu Dec  7 22:31:09 2006
@@ -21,10 +21,10 @@
 		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
 	;;


More information about the pld-cvs-commit mailing list