2011-01-03 10:48:06 +00:00
|
|
|
description "Startup autofs System for nis configuration files"
|
|
|
|
author "Harald Kueller <harald.kueller@compuextreme.de>"
|
|
|
|
version 1.0
|
|
|
|
emits none special
|
|
|
|
|
|
|
|
start on ( runlevel [2345] and ( started ypclient ))
|
|
|
|
stop on stopping ypclient
|
|
|
|
|
|
|
|
console output
|
|
|
|
|
|
|
|
pre-start script
|
|
|
|
source /etc/init/functions
|
|
|
|
if grep automount /etc/nsswitch.conf|grep -q nis; then
|
2011-08-19 06:52:09 +00:00
|
|
|
/sbin/CheckPid /var/run/autofs/automount_nis.pid
|
2011-01-03 10:48:06 +00:00
|
|
|
else
|
|
|
|
exit 10
|
|
|
|
fi
|
|
|
|
end script
|
|
|
|
|
|
|
|
exec automount -f -C -p /var/run/autofs/automount_nis.pid -t `cat /etc/sysconfig/autofstime` nis:auto.master
|