2cfe1de66a
git-svn-id: svn://svn.compuextreme.de/Viitor/V961/Viitor_upstartaddon@4330 504e572c-2e33-0410-9681-be2bf7408885
18 lines
370 B
Plaintext
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
|