mirror of
https://github.com/samba-team/samba.git
synced 2024-12-27 03:21:53 +03:00
28f76a4162
(This used to be commit 4456d5edd9
)
39 lines
548 B
Bash
39 lines
548 B
Bash
#! /bin/sh
|
|
|
|
#
|
|
# winbindd control
|
|
#
|
|
|
|
IS_ON=/etc/chkconfig
|
|
KILLALL=/sbin/killall
|
|
|
|
WINBINDD=/usr/samba/bin/winbindd
|
|
|
|
if test ! -x $IS_ON ; then
|
|
IS_ON=true
|
|
fi
|
|
|
|
if $IS_ON verbose ; then
|
|
ECHO=echo
|
|
else # For a quiet startup and shutdown
|
|
ECHO=:
|
|
fi
|
|
|
|
case $1 in
|
|
'start')
|
|
if $IS_ON winbind && test -x $WINBINDD; then
|
|
$KILLALL -15 winbindd
|
|
$ECHO "winbindd:\c"
|
|
$WINBINDD ; $ECHO " winbindd."
|
|
fi
|
|
;;
|
|
'stop')
|
|
$ECHO "Stopping winbindd."
|
|
$KILLALL -15 winbindd
|
|
exit 0
|
|
;;
|
|
*)
|
|
echo "usage: /etc/init.d/winbind {start|stop}"
|
|
;;
|
|
esac
|