2011-01-03 10:48:06 +00:00
|
|
|
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
|
2011-08-19 09:26:29 +00:00
|
|
|
/sbin/CheckPid /var/run/ypbind.pid
|
2011-01-03 10:48:06 +00:00
|
|
|
end script
|
|
|
|
|
|
|
|
expect daemon
|
|
|
|
exec /usr/sbin/start_ypbind
|