From c500b170a4bae0d5b54e45ae2bc62ad95a89b5cb Mon Sep 17 00:00:00 2001 From: kueller Date: Wed, 21 Apr 2010 12:53:37 +0000 Subject: [PATCH] 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 --- etc/init/ypclient.conf | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) 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