1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-27 14:04:05 +03:00

fix winbindd init sctipt

(This used to be commit 018b222f9248e6baa02e74e36adbf2332aa4431e)
This commit is contained in:
Gerald Carter 2003-07-11 15:09:57 +00:00
parent 5359b8dc97
commit 3a40c45807

View File

@ -20,15 +20,19 @@ 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
if [ "`egrep -i '(idmap.*uid|winbind.*uid)' $CONFIG | egrep -v [\#\;]`" ]; then
daemon winbindd
RETVAL=$?
fi
@ -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