Hello all,

We are try to run the automount daemon.

We are using the below script file 
We are using the autofs version 4 support


#/etc/rc.d/init.d/auto_mount..

case "$1" in
        start)

        for mountspec in $(/bin/ls /etc/sysconfig/automount-config/*.auto)
        do
                MOUNTPOINT=/mount
                TIMEOUT=0

                MOUNT_BASE=${mountspec%.auto}

                echo "Starting automount for group ${MOUNT_BASE##*/}  ..."
                automount --timeout=${TIMEOUT} $MOUNTPOINT file \
                $MOUNT_BASE.map
                evaluate_retval
        done
        ;;
        
        # assume all instances of automount were started by this script
        stop)
                echo -n "Stopping automount ..."
                # Unmount everything mounted by automount
                killall -USR1 automount
                killall automount
                evaluate_retval
                #exit 1
                ;;
        restart)
                $0 stop
                sleep 1
                $0 start
                ;;
        *)
                echo "Usage: $0 {start|stop|restart}"
                exit 1
                ;;
esac
# End /etc/rc.d/init.d/auto_mount
#EOF

The daemon does not run in the background
please confirm and verify..
 
Thanks and regards
Hariharan.V.

_______________________________________________
autofs mailing list
[email protected]
http://linux.kernel.org/mailman/listinfo/autofs

Reply via email to