diff options
author | Bill Nottingham <notting@redhat.com> | 2008-04-08 01:12:13 -0400 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 2008-04-08 01:12:13 -0400 |
commit | d61552366c960cae6f5a52d493185ec8d8e716cd (patch) | |
tree | 279ce139a56ca6040fa89b2cc578495ca710c1b7 /rc.d/rc | |
parent | 6d61a919350e2f9011de5ae95a8a6a182b19c242 (diff) | |
download | initscripts-d61552366c960cae6f5a52d493185ec8d8e716cd.tar initscripts-d61552366c960cae6f5a52d493185ec8d8e716cd.tar.gz initscripts-d61552366c960cae6f5a52d493185ec8d8e716cd.tar.bz2 initscripts-d61552366c960cae6f5a52d493185ec8d8e716cd.tar.xz initscripts-d61552366c960cae6f5a52d493185ec8d8e716cd.zip |
Fix various shutdown-related weirdness. (#438444)
[ -f /var/lock/subsys/$subsys -o -f /var/lock/subsys/$subsys.init ] \
|| continue
and
[ -f /var/lock/subsys/$subsys ] || continue
[ -f /var/lock/subsys/$subsys.init ] || continue
?
NOT EQUIVALENT. *whacks self in head*
Diffstat (limited to 'rc.d/rc')
-rwxr-xr-x | rc.d/rc | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -66,8 +66,7 @@ for i in /etc/rc$runlevel.d/K* ; do # Check if the subsystem is already up. subsys=${i#/etc/rc$runlevel.d/K??} - [ -f /var/lock/subsys/$subsys ] || continue - [ -f /var/lock/subsys/$subsys.init ] || continue + [ -f /var/lock/subsys/$subsys -o -f /var/lock/subsys/$subsys.init ] || continue check_runlevel "$i" || continue # Bring the subsystem down. |