source: bootscripts-standard/cblfs/init.d/winbind@ 29f0426

Last change on this file since 29f0426 was 7125722, checked in by Jim Gifford <clfs@…>, 17 years ago

Import of Bootscripts

  • Property mode set to 100644
File size: 1012 bytes
Line 
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
13PIDFILE="/var/run/winbindd.pid"
14KILLDELAY="10"
15
16case "$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
48esac
49
50# End $rc_base/init.d/winbind
Note: See TracBrowser for help on using the repository browser.