a45fe5c4f1
git-svn-id: svn://svn.compuextreme.de/Viitor/V963/Viitor_autofs@6199 504e572c-2e33-0410-9681-be2bf7408885
21 lines
545 B
Plaintext
21 lines
545 B
Plaintext
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
|
|
/sbin/CheckPid /var/run/autofs/automount_nis.pid
|
|
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
|