Viitor_upstart/etc/event.d/ypclient
kueller 7b7f6e837b V961 Tree Umbau
git-svn-id: svn://svn.compuextreme.de/Viitor/V961/Viitor_upstart@4329 504e572c-2e33-0410-9681-be2bf7408885
2008-05-03 16:59:18 +00:00

22 lines
393 B
Plaintext

# rc - runlevel compatibility
#
# This task guesses what the "default runlevel" should be and starts the
# appropriate script.
start on started rpc
stop on stopping rpc
console output
pre-start script
if [ -f /etc/sysconfig/nis/defaultdomain ]; then
domainname `cat /etc/sysconfig/nis/defaultdomain`
/usr/sbin/ypbind
sleep 2
fi
end script
post-stop script
pkill ypbind
end script