Viitor_upstartaddon/etc/event.d/autofs-nis
kueller 2cfe1de66a V961 Tree Umbau
git-svn-id: svn://svn.compuextreme.de/Viitor/V961/Viitor_upstartaddon@4330 504e572c-2e33-0410-9681-be2bf7408885
2008-05-03 16:59:19 +00:00

18 lines
370 B
Plaintext

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