]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blame - src/initscripts/init.d/samba
Fixed connection tracking bug (also in Core 27).
[people/pmueller/ipfire-2.x.git] / src / initscripts / init.d / samba
CommitLineData
559d3ad2
MT
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
13case "$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..."
cb5e9c6c 24 killproc -p /var/run/smbd.pid /usr/sbin/smbd
559d3ad2
MT
25
26 boot_mesg "Stopping nmbd..."
cb5e9c6c 27 killproc -p /var/run/nmbd.pid /usr/sbin/nmbd
559d3ad2
MT
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
cb5e9c6c 40 sleep 3
559d3ad2
MT
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 ;;
53esac
54
55# End $rc_base/init.d/samba