start on started mountfs stop on stopping mountfs console output pre-start script source /etc/init.d/functions if grep automount /etc/nsswitch.conf 2>/dev/null|\ grep files &>/dev/null; then if [ -f /etc/sysconfig/auto.master ]; then cat /etc/sysconfig/auto.master|initautomount files file >>/tmp/autofs.log fi fi end script post-stop script kill `ps -ef|grep automount|grep file|awk '{print $2}'` end script