4 # description: Starts and stops the Samba winbind daemon
6 # pidfile: /var/cache/samba/winbind.pid
7 # config: /etc/samba/smb.conf
10 # Source function library.
11 if [ -f /etc/init.d/functions ] ; then
12 . /etc/init.d/functions
13 elif [ -f /etc/rc.d/init.d/functions ] ; then
14 . /etc/rc.d/init.d/functions
19 # Avoid using root's TMPDIR
22 # Source networking configuration.
23 . /etc/sysconfig/network
25 if [ -f /etc/sysconfig/samba ]; then
26 . /etc/sysconfig/samba
29 # Check that networking is up.
30 [ ${NETWORKING} = "no" ] && exit 0
32 # Check that smb.conf exists.
33 [ -f /etc/samba/smb.conf ] || exit 0
40 echo -n $"Starting $KIND services: "
41 daemon winbindd "$WINBINDOPTIONS"
44 [ $RETVAL -eq 0 ] && touch /var/lock/subsys/winbindd || RETVAL=1
51 echo -n $"Shutting down $KIND services: "
54 [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/winbindd
65 echo -n $"Reloading smb.conf file: "
66 killproc winbindd -HUP
93 [ -f /var/lock/subsys/winbindd ] && restart || :
96 echo $"Usage: $0 {start|stop|restart|reload|status|condrestart}"