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 DAEMON_COREFILE_LIMIT
='unlimited'
21 # Avoid using root's TMPDIR
24 # Source networking configuration.
25 .
/etc
/sysconfig
/network
27 if [ -f /etc
/sysconfig
/samba
]; then
28 .
/etc
/sysconfig
/samba
31 # Check that networking is up.
32 [ ${NETWORKING} = "no" ] && exit 0
34 # Check that smb.conf exists.
35 [ -f /etc
/samba
/smb.conf
] ||
exit 0
42 echo -n $
"Starting $KIND services: "
43 daemon winbindd
"$WINBINDOPTIONS"
46 [ $RETVAL -eq 0 ] && touch /var
/lock
/subsys
/winbindd || RETVAL
=1
53 echo -n $
"Shutting down $KIND services: "
56 [ $RETVAL -eq 0 ] && rm -f /var
/run
/winbindd.pid
&& rm -f /var
/lock
/subsys
/winbindd
67 echo -n $
"Reloading smb.conf file: "
68 killproc winbindd
-HUP
95 [ -f /var
/lock
/subsys
/winbindd
] && restart ||
:
98 echo $
"Usage: $0 {start|stop|restart|reload|status|condrestart}"