]> git.pld-linux.org Git - projects/rc-scripts.git/blob - rc.d/init.d/killall
647b2dcd9cdbd86914156159c0975c616a24eb9f
[projects/rc-scripts.git] / rc.d / init.d / killall
1 #!/bin/sh
2
3 # $Id: killall,v 1.4 1999/07/31 11:24:19 misiek Exp $
4 # Bring down all unneeded services that are still running (there shouldn't 
5 # be any, so this is just a sanity check)
6
7 for i in /var/lock/subsys/*; do
8         # Check if the script is there.
9         [ ! -f $i ] && continue
10
11         # Get the subsystem name.
12         subsys=${i#/var/lock/subsys/}
13
14         # Bring the subsystem down.
15         if [ -f /etc/rc.d/init.d/$subsys.init ]; then
16                 /etc/rc.d/init.d/$subsys.init stop
17         else
18                 /etc/rc.d/init.d/$subsys stop
19         fi
20 done
21
This page took 0.016537 seconds and 2 git commands to generate.