Viitor_autofs/etc/init/autofs.conf

21 lines
584 B
Plaintext
Raw Permalink Normal View History

description "Startup autofs System for local configuration files"
author "Harald Kueller <harald.kueller@compuextreme.de>"
version 1.0
emits none special
start on (runlevel [2345] and (started mountfs))
stop on runlevel [016]
console none
pre-start script
source /etc/init/functions
if [ -f /etc/sysconfig/auto.master ] && grep automount /etc/nsswitch.conf|grep -q files; then
CheckPid /var/run/autofs/automount_files.pid
else
exit 10
fi
end script
exec automount -f -p /var/run/autofs/automount_files.pid -t `cat /etc/sysconfig/autofstime` /etc/sysconfig/auto.master