summaryrefslogtreecommitdiff
path: root/packaging/SGI/winbindd.rc
blob: c63944a04d944eb690b4f4a0efe8f41c8e7bdd94 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#! /bin/sh

#
# winbindd server 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 winbindd && 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/winbindd {start|stop}"
	;;
esac