]> git.pld-linux.org Git - packages/autofs.git/blobdiff - autofs.init
- automount doesn't have -TERM parameter
[packages/autofs.git] / autofs.init
index fe7a06d4139968a78472edf6725487dcebb42018..86e78ce248485095dc9e1654a5279588ec7551c2 100644 (file)
@@ -5,8 +5,8 @@
 #
 # 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
@@ -24,7 +24,7 @@
 
 # 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
@@ -92,7 +92,7 @@ if is_yes $USE_YP; then
 fi
 }
 
-RETVAL=o
+RETVAL=0
 # See how we were called.
 case "$1" in
   start)
@@ -111,7 +111,7 @@ case "$1" in
   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
This page took 0.488202 seconds and 4 git commands to generate.