]> git.ipfire.org Git - people/teissler/ipfire-2.x.git/blob - src/initscripts/init.d/winbind
httpscert: Increase size of the RSA key to 4096.
[people/teissler/ipfire-2.x.git] / src / initscripts / init.d / winbind
1 #!/bin/bash
2 # Begin $rc_base/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/sysconfig/rc
11 . $rc_functions
12
13 PIDFILE="/var/run/winbindd.pid"
14 KILLDELAY="10"
15
16 case "$1" in
17
18 start)
19 boot_mesg "Starting winbind..."
20 loadproc /usr/sbin/winbindd
21 ;;
22
23 stop)
24 boot_mesg "Stopping winbind..."
25 killproc -p ${PIDFILE} /usr/sbin/winbind
26 ;;
27
28 reload)
29 boot_mesg "Reloading winbind..."
30 reloadproc /usr/sbin/winbindd
31 ;;
32
33 restart)
34 $0 stop
35 sleep 1
36 $0 start
37 ;;
38
39 status)
40 statusproc /usr/sbin/winbindd
41 ;;
42
43 *)
44 echo "Usage: $0 {start|stop|reload|restart|status}"
45 exit 1
46 ;;
47
48 esac
49
50 # End $rc_base/init.d/winbind