blob: 6d3a89b49e1fce87dff82c98c3cc605f248c51ae (
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
27
|
#!/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.8 2002/03/27 22:54:22 woodchip Exp $
depend() {
need net
use cupsd
}
start() {
ebegin "Starting samba"
start-stop-daemon --start --quiet --exec /usr/sbin/smbd
result=$?
start-stop-daemon --start --quiet --exec /usr/sbin/nmbd
result=$(( $result + $? ))
eend $result
}
stop() {
ebegin "Stopping samba"
start-stop-daemon --stop --quiet --pidfile /var/run/samba/smbd.pid
result=$?
start-stop-daemon --stop --quiet --pidfile /var/run/samba/nmbd.pid
result=$(( $result + $? ))
eend $result
}
|