Viitor_autofs/etc/event.d/autofs-nis

20 lines
438 B
Plaintext
Raw Normal View History

start on started ypclient
stop on stopping ypclient
console output
pre-start script
source /etc/event.d/functions
source /etc/event.d/autofs_function
source /etc/sysconfig/autofstime
if grep automount /etc/nsswitch.conf 2>/dev/null|\
grep nis &>/dev/null; then
ypcat -k auto.master 2>/dev/null|initautomount nis yp
fi
end script
post-stop script
kill `ps -ef|grep automount|grep yp|awk '{print $2}'`
end script