summaryrefslogtreecommitdiffstats
path: root/packaging
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2003-07-11 15:09:57 +0000
committerGerald Carter <jerry@samba.org>2003-07-11 15:09:57 +0000
commit018b222f9248e6baa02e74e36adbf2332aa4431e (patch)
tree05590990597bda531369131a33041f4abef7af17 /packaging
parentc9d6782e091406ed105b7dc34c8c83e53bfe515e (diff)
downloadsamba-018b222f9248e6baa02e74e36adbf2332aa4431e.tar.gz
samba-018b222f9248e6baa02e74e36adbf2332aa4431e.tar.xz
samba-018b222f9248e6baa02e74e36adbf2332aa4431e.zip
fix winbindd init sctipt
Diffstat (limited to 'packaging')
-rw-r--r--packaging/RedHat/winbind.init12
1 files changed, 8 insertions, 4 deletions
diff --git a/packaging/RedHat/winbind.init b/packaging/RedHat/winbind.init
index 291c351df3a..17ddbd502b3 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