blob: c9fd7e3cfaf5481e504833fb12d602802fdc9be6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
#!/sbin/runscript
# Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# $Header: /var/cvsroot/gentoo-x86/net-fs/samba/files/samba.rc6,v 1.6 2002/03/11 03:56:49 woodchip Exp $
depend() {
need net
}
start() {
ebegin "Starting samba"
start-stop-daemon --start --quiet --exec /usr/sbin/nmbd
result=$?
start-stop-daemon --start --quiet --exec /usr/sbin/smbd
result=$(( $result + $? ))
eend $result
}
stop() {
ebegin "Stopping samba"
start-stop-daemon --stop --quiet --pidfile /var/run/smb/nmbd.pid
result=$?
start-stop-daemon --stop --quiet --pidfile /var/run/smb/smbd.pid
result=$(( $result + $? ))
eend $result
}
|