Viitor_upstart/etc/init/ypclient
kueller 061ddf553e IN neuer Upstart version liegen die Scripte unter init, und nicht mehr
unter event.d



git-svn-id: svn://svn.compuextreme.de/Viitor/V962/Viitor_upstart@5503 504e572c-2e33-0410-9681-be2bf7408885
2010-04-20 12:47:00 +00:00

24 lines
460 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
source /etc/event.d/functions
if [ -f /etc/sysconfig/nis/defaultdomain ]; then
domainname `cat /etc/sysconfig/nis/defaultdomain`
/usr/sbin/ypbind
status_message "ypclient started"
sleep 2
fi
end script
post-stop script
pkill ypbind
end script