diff --git a/etc/init/ypclient.conf b/etc/init/ypclient.conf index 211e73e..be664f3 100644 --- a/etc/init/ypclient.conf +++ b/etc/init/ypclient.conf @@ -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