]> git.pld-linux.org Git - packages/samba.git/blobdiff - winbind.init
- updated to 4.2.4
[packages/samba.git] / winbind.init
old mode 100644 (file)
new mode 100755 (executable)
index 8497e91..c33bcca
@@ -2,7 +2,7 @@
 #
 # chkconfig:   345 91 35
 # description: Starts and stops the Samba winbind daemon to provide\
-#              user and group information from a NT domain controller to linux.
+#              user and group information from a NT domain controller to linux.
 #
 # config:      /etc/samba/smb.conf
 
@@ -34,14 +34,12 @@ TMPDIR="/tmp"; export TMPDIR
 
 start() {
        if [ ! -f /var/lock/subsys/winbind ]; then
-               if [ "`grep -i 'idmap uid' /etc/samba/smb.conf | egrep -v [\#\;]`" -a "`grep -i 'idmap gid' /etc/samba/smb.conf | egrep -v [\#\;]`" ]; then
-                       msg_starting winbindd
-                       daemon winbindd
-                       RETVAL=$?
-                       [ $RETVAL -eq 0 ] && touch /var/lock/subsys/winbind || \
+               msg_starting winbindd
+               daemon /usr/sbin/winbindd
+               RETVAL=$?
+               if [ $RETVAL -eq 0 ]; then
+                       touch /var/lock/subsys/winbind
                        RETVAL=1
-               else
-                       nls "Winbind is not configured in /etc/samba/smb.conf, not starting"
                fi
        else
                msg_already_running winbindd
This page took 0.0345 seconds and 4 git commands to generate.