diff options
author | Bill Nottingham <notting@redhat.com> | 2012-08-06 15:18:23 -0400 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 2012-08-06 15:18:23 -0400 |
commit | d85174edb7389f670705595804b48aee0278ed2f (patch) | |
tree | 0cba6c19ef0420ec21bb56c0fe962d13ee3bee4f /rc.d/init.d/killall | |
parent | 164d1ede7161233a2a2fe6e4cf413b44a08923e4 (diff) | |
download | initscripts-d85174edb7389f670705595804b48aee0278ed2f.tar initscripts-d85174edb7389f670705595804b48aee0278ed2f.tar.gz initscripts-d85174edb7389f670705595804b48aee0278ed2f.tar.bz2 initscripts-d85174edb7389f670705595804b48aee0278ed2f.tar.xz initscripts-d85174edb7389f670705595804b48aee0278ed2f.zip |
Initial removal of support for non-systemd systems.
Diffstat (limited to 'rc.d/init.d/killall')
-rwxr-xr-x | rc.d/init.d/killall | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/rc.d/init.d/killall b/rc.d/init.d/killall deleted file mode 100755 index 4405879c..00000000 --- a/rc.d/init.d/killall +++ /dev/null @@ -1,35 +0,0 @@ -#! /bin/bash - -# 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 - - # Get the subsystem name. - subsys=${i#/var/lock/subsys/} - - # Networking could be needed for NFS root. - [ $subsys = network ] && continue - - # Bring the subsystem down. - if [ -f /etc/init.d/$subsys ]; then - /etc/init.d/$subsys stop - elif [ -f /etc/init.d/$subsys.init ]; then - /etc/init.d/$subsys.init stop - else - rm -f "$i" - fi -done -exit 0 |