|
Server : Apache/2.2.17 (Unix) mod_ssl/2.2.17 OpenSSL/0.9.8e-fips-rhel5 DAV/2 PHP/5.2.17 System : Linux localhost 2.6.18-419.el5 #1 SMP Fri Feb 24 22:47:42 UTC 2017 x86_64 User : nobody ( 99) PHP Version : 5.2.17 Disable Function : NONE Directory : /etc/rc.d/rc0.d/ |
Upload File : |
#! /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.init ]; then
/etc/init.d/$subsys.init stop
elif [ -f /etc/init.d/$subsys ]; then
/etc/init.d/$subsys stop
else
rm -f "$i"
fi
done