Last change
on this file since d8a3177 was 7125722, checked in by Jim Gifford <clfs@…>, 17 years ago |
Import of Bootscripts
|
-
Property mode
set to
100644
|
File size:
926 bytes
|
Rev | Line | |
---|
[7125722] | 1 | #!/bin/sh
|
---|
| 2 | # Begin $rc_base/init.d/samba
|
---|
| 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 | case "$1" in
|
---|
| 14 | start)
|
---|
| 15 | boot_mesg "Starting nmbd..."
|
---|
| 16 | loadproc /usr/sbin/nmbd -D
|
---|
| 17 |
|
---|
| 18 | boot_mesg "Starting smbd..."
|
---|
| 19 | loadproc /usr/sbin/smbd -D
|
---|
| 20 | ;;
|
---|
| 21 |
|
---|
| 22 | stop)
|
---|
| 23 | boot_mesg "Stopping smbd..."
|
---|
| 24 | killproc /usr/sbin/smbd
|
---|
| 25 |
|
---|
| 26 | boot_mesg "Stopping nmbd..."
|
---|
| 27 | killproc /usr/sbin/nmbd
|
---|
| 28 | ;;
|
---|
| 29 |
|
---|
| 30 | reload)
|
---|
| 31 | boot_mesg "Reloading smbd..."
|
---|
| 32 | reloadproc /usr/sbin/smbd
|
---|
| 33 |
|
---|
| 34 | boot_mesg "Reloading nmbd..."
|
---|
| 35 | reloadproc /usr/sbin/nmbd
|
---|
| 36 | ;;
|
---|
| 37 |
|
---|
| 38 | restart)
|
---|
| 39 | $0 stop
|
---|
| 40 | sleep 1
|
---|
| 41 | $0 start
|
---|
| 42 | ;;
|
---|
| 43 |
|
---|
| 44 | status)
|
---|
| 45 | statusproc /usr/sbin/nmbd
|
---|
| 46 | statusproc /usr/sbin/smbd
|
---|
| 47 | ;;
|
---|
| 48 |
|
---|
| 49 | *)
|
---|
| 50 | echo "Usage: $0 {start|stop|reload|restart|status}"
|
---|
| 51 | exit 1
|
---|
| 52 | ;;
|
---|
| 53 | esac
|
---|
| 54 |
|
---|
| 55 | # End $rc_base/init.d/samba
|
---|
Note:
See
TracBrowser
for help on using the repository browser.