#
# chkconfig: 2345 72 08
#
-# description: Script for automount using a Sun-style "master map".
-# We first look for a local /etc/autofs/auto.master, then a YP
+# description: Script for automount using a Sun-style "master map". \
+# We first look for a local /etc/autofs/auto.master, then a YP \
# map with that name
#
# processname: autofs
# Check that networking is up.
if is_yes "${NETWORKING}"; then
- if [ ! -f /var/lock/subsys/network ]; then
+ if [ ! -f /var/lock/subsys/network -a "$1" != stop -a "$1" != status ]; then
# nls "ERROR: Networking is down. %s can't be run." <service>
msg_network_down automounter
exit 1
fi
}
-RETVAL=o
+RETVAL=0
# See how we were called.
case "$1" in
start)
stop)
if [ -f /var/lock/subsys/autofs ]; then
msg_stopping automounter
- automount -TERM
+# automount -TERM
killproc automount
rm -f /var/lock/subsys/autofs >/dev/null 2>&1
else