]> git.pld-linux.org Git - projects/rc-scripts.git/blame - rc.d/init.d/killall
killall is now chkconfig ready.
[projects/rc-scripts.git] / rc.d / init.d / killall
CommitLineData
12de71be 1#!/bin/sh
38198f50 2#
4c3f3bf6
AM
3# killall Script for system downing
4#
5# chkconfig: 12345 00 90
6# description: kill em all
7#
8# $Id: killall,v 1.5 1999/08/16 09:38:39 misiek Exp $
7742e157
AF
9# Bring down all unneeded services that are still running (there shouldn't
10# be any, so this is just a sanity check)
11
4c3f3bf6
AM
12case "$1" in
13 start*)
14 exit 0
15 ;;
16 stop*)
17 for i in /var/lock/subsys/*; do
18 # Check if the script is there.
19 [ ! -f $i ] && continue
20
21 # Get the subsystem name.
22 subsys=${i#/var/lock/subsys/}
23
24 # Bring the subsystem down.
25 if [ -f /etc/rc.d/init.d/$subsys.init ]; then
26 /etc/rc.d/init.d/$subsys.init stop
27 else
28 /etc/rc.d/init.d/$subsys stop
29 fi
30 done
31 ;;
32esac
This page took 0.079104 seconds and 4 git commands to generate.