aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2003-09-04 01:33:52 +0000
committerBill Nottingham <notting@redhat.com>2003-09-04 01:33:52 +0000
commitcda9de1a356ac6b018a86845083693f8eb61dcc0 (patch)
treedd9ff719692b0d241b9c272cbd7f876605aa10ca
parentac574862cc95b534223fd468a0549c04b9459279 (diff)
downloadinitscripts-cda9de1a356ac6b018a86845083693f8eb61dcc0.tar
initscripts-cda9de1a356ac6b018a86845083693f8eb61dcc0.tar.gz
initscripts-cda9de1a356ac6b018a86845083693f8eb61dcc0.tar.bz2
initscripts-cda9de1a356ac6b018a86845083693f8eb61dcc0.tar.xz
initscripts-cda9de1a356ac6b018a86845083693f8eb61dcc0.zip
check for a parameter (#84799)
-rwxr-xr-xrc.d/init.d/killall10
1 files changed, 10 insertions, 0 deletions
diff --git a/rc.d/init.d/killall b/rc.d/init.d/killall
index 982ed2f3..d22982ef 100755
--- a/rc.d/init.d/killall
+++ b/rc.d/init.d/killall
@@ -3,6 +3,16 @@
# Bring down all unneeded services that are still running (there shouldn't
# be any, so this is just a sanity check)
+case "$1" in
+ *start)
+ ;;
+ *)
+ echo $"Usage: $0 {start}"
+ exit 1
+ ;;
+esac
+
+
for i in /var/lock/subsys/* ; do
# Check if the script is there.
[ -f "$i" ] || continue