From 3a40c45807275ae897796ce3c8c45f747e2b2312 Mon Sep 17 00:00:00 2001 From: Gerald Carter Date: Fri, 11 Jul 2003 15:09:57 +0000 Subject: fix winbindd init sctipt (This used to be commit 018b222f9248e6baa02e74e36adbf2332aa4431e) --- packaging/RedHat/winbind.init | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'packaging/RedHat') diff --git a/packaging/RedHat/winbind.init b/packaging/RedHat/winbind.init index 291c351df3..17ddbd502b 100644 --- a/packaging/RedHat/winbind.init +++ b/packaging/RedHat/winbind.init @@ -20,16 +20,20 @@ fi [ ${NETWORKING} = "no" ] && exit 0 # Check that smb.conf exists. -[ -f /etc/samba/smb.conf ] || exit 0 +[ -f $CONFIG ] || exit 0 RETVAL=0 +CONFIG=/usr/local/samba/lib/smb.conf +PATH=/sbin:/usr/sbin:/bin:/usr/bin:/usr/local/samba/sbin:/usr/local/samba/bin +export PATH + start() { echo -n "Starting Winbind services: " RETVAL=1 - if [ "`grep -i 'winbind uid' /etc/samba/smb.conf | egrep -v [\#\;]`" ]; then - daemon winbindd + if [ "`egrep -i '(idmap.*uid|winbind.*uid)' $CONFIG | egrep -v [\#\;]`" ]; then + daemon winbindd RETVAL=$? fi echo @@ -40,7 +44,7 @@ start() { stop() { echo -n "Shutting down Winbind services: " RETVAL=1 - if [ "`grep -i 'winbind uid' /etc/samba/smb.conf | egrep -v [\#\;]`" ]; then + if [ "`egrep -i '(idmap.*uid|winbind.*uid)' $CONFIG | egrep -v [\#\;]`" ]; then killproc winbindd RETVAL=$? fi -- cgit