description "Startup autofs System for local configuration files" author "Harald Kueller " version 1.0 emits none special start on (runlevel [2345] and (started mountfs)) stop on runlevel [S016] console none script source /etc/init/functions source /etc/sysconfig/autofstime if [ -f /etc/sysconfig/auto.master ] && grep automount /etc/nsswitch.conf|grep -q files; then if [ -f /var/run/autofs/automount_files.pid ]; then if ps -ef|awk '{print $2}'|grep -q `cat /var/run/autofs/automount_files.pid`; then echo "Automount already running - not started" exit 10 else echo -n "Removing old files" rm /var/run/autofs/automount_files.pid fi fi automount -f -v -p /var/run/autofs/automount_files.pid -t $TIMEOUT /etc/sysconfig/auto.master fi end script