|
Last change
on this file since 1036 was 206, checked in by Herwig Bauernfeind, 16 years ago |
|
Import Samba 3.3 branch at 3.0.0 level (psmedley's port)
|
|
File size:
548 bytes
|
| Line | |
|---|
| 1 | #! /bin/sh
|
|---|
| 2 |
|
|---|
| 3 | #
|
|---|
| 4 | # winbindd control
|
|---|
| 5 | #
|
|---|
| 6 |
|
|---|
| 7 | IS_ON=/etc/chkconfig
|
|---|
| 8 | KILLALL=/sbin/killall
|
|---|
| 9 |
|
|---|
| 10 | WINBINDD=/usr/samba/bin/winbindd
|
|---|
| 11 |
|
|---|
| 12 | if test ! -x $IS_ON ; then
|
|---|
| 13 | IS_ON=true
|
|---|
| 14 | fi
|
|---|
| 15 |
|
|---|
| 16 | if $IS_ON verbose ; then
|
|---|
| 17 | ECHO=echo
|
|---|
| 18 | else # For a quiet startup and shutdown
|
|---|
| 19 | ECHO=:
|
|---|
| 20 | fi
|
|---|
| 21 |
|
|---|
| 22 | case $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 | ;;
|
|---|
| 38 | esac
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.