]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blob - src/init.d/winbind
Hinzugefuegt:
[people/pmueller/ipfire-2.x.git] / src / init.d / winbind
1 #!/bin/bash
2 # Begin /etc/init.d/winbind
3
4 # Based on sysklogd script from LFS-3.1 and earlier.
5 # Rewritten by Gerard Beekmans - gerard@linuxfromscratch.org
6
7 #$LastChangedBy: bdubbs $
8 #$Date: 2005-08-01 14:29:19 -0500 (Mon, 01 Aug 2005) $
9
10 . /etc/init.d/init-functions
11
12 PIDFILE="/var/run/winbindd.pid"
13 KILLDELAY="10"
14
15 case "$1" in
16
17 start)
18 boot_mesg "Starting winbind..."
19 loadproc /usr/sbin/winbindd
20 ;;
21
22 stop)
23 boot_mesg "Stopping winbind..."
24 killproc -p ${PIDFILE} /usr/sbin/winbind
25 ;;
26
27 reload)
28 boot_mesg "Reloading winbind..."
29 reloadproc /usr/sbin/winbindd
30 ;;
31
32 restart)
33 $0 stop
34 sleep 1
35 $0 start
36 ;;
37
38 status)
39 statusproc /usr/sbin/winbindd
40 ;;
41
42 *)
43 echo "Usage: $0 {start|stop|reload|restart|status}"
44 exit 1
45 ;;
46
47 esac
48
49 # End /etc/init.d/winbind