1#! /bin/sh 2 3# 4# winbindd control 5# 6 7IS_ON=/etc/chkconfig 8KILLALL=/sbin/killall 9 10WINBINDD=/usr/samba/bin/winbindd 11 12if test ! -x $IS_ON ; then 13 IS_ON=true 14fi 15 16if $IS_ON verbose ; then 17 ECHO=echo 18else # For a quiet startup and shutdown 19 ECHO=: 20fi 21 22case $1 in 23'start') 24 if $IS_ON winbind && test -x $WINBINDD; then 25 $KILLALL -15 winbindd 26 $ECHO "winbindd:\c" 27 $WINBINDD ; $ECHO " winbindd." 28 fi 29 ;; 30'stop') 31 $ECHO "Stopping winbindd." 32 $KILLALL -15 winbindd 33 exit 0 34 ;; 35*) 36 echo "usage: /etc/init.d/winbind {start|stop}" 37 ;; 38esac 39