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:
parent
eb6f39bea8
commit
c500b170a4
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user