94b9bf50bf
git-svn-id: svn://svn.compuextreme.de/Viitor/V962/Viitor_ypbind@5793 504e572c-2e33-0410-9681-be2bf7408885
33 lines
658 B
Plaintext
33 lines
658 B
Plaintext
description "If configured, startup ypbind prozess"
|
|
author "Harald Kueller <harald.kueller@compuextreme.de>"
|
|
version 1.0
|
|
emits none special
|
|
|
|
start on ( runlevel [2345] and (started rpc))
|
|
stop on stopping rpc
|
|
|
|
console none
|
|
|
|
pre-start script
|
|
if [ ! -d /etc/sysconfig/nis ]; then
|
|
mkdir /etc/sysconfig/nis
|
|
fi
|
|
if [ -f /etc/sysconfig/nis/defaultdomain ]; then
|
|
domainname `cat /etc/sysconfig/nis/defaultdomain`
|
|
else
|
|
exit 10
|
|
fi
|
|
if [ -f /etc/yp.conf ]; then
|
|
echo "" >/tmp/yp_options
|
|
else
|
|
echo "-broadcast" >/tmp/yp_options
|
|
fi
|
|
end script
|
|
|
|
expect daemon
|
|
exec /usr/sbin/ypbind `cat /tmp/yp_options`
|
|
|
|
post-start script
|
|
rm /tmp/yp_options
|
|
end script
|