mit expect daemon funktioniert das noch etwas sauberer...

git-svn-id: svn://svn.compuextreme.de/Viitor/V962/Viitor_ypbind@5569 504e572c-2e33-0410-9681-be2bf7408885
This commit is contained in:
kueller 2010-04-21 12:53:37 +00:00
parent eb6f39bea8
commit c500b170a4

View File

@ -6,14 +6,15 @@ emits none special
start on ( runlevel [2345] and (started rpc))
stop on stopping rpc
#exect daemon
#pid binary /usr/sbin/ypbind
console none
script
source /etc/init/functions
pre-start script
if [ -f /etc/sysconfig/nis/defaultdomain ]; then
domainname `cat /etc/sysconfig/nis/defaultdomain`
/usr/sbin/ypbind -debug
else
exit 10
fi
end script
expect daemon
exec /usr/sbin/ypbind