2009-04-30 13:47:22 +02:00
|
|
|
#!/sbin/runscript
|
|
|
|
# Copyright 1999-2007 Gentoo Foundation
|
|
|
|
# Distributed under the terms of the GNU General Public License, v2 or later
|
|
|
|
# $Header: $
|
|
|
|
|
|
|
|
opts="reload"
|
|
|
|
|
|
|
|
depend() {
|
|
|
|
after slapd
|
|
|
|
need net
|
|
|
|
}
|
|
|
|
|
2009-04-30 14:49:27 +02:00
|
|
|
DAEMON="/usr/sbin/samba"
|
|
|
|
|
2009-04-30 13:47:22 +02:00
|
|
|
start() {
|
|
|
|
ebegin "Starting Samba 4.x daemon... "
|
|
|
|
start-stop-daemon --start --quiet \
|
|
|
|
--exec ${DAEMON} -- ${samba_start_options}
|
|
|
|
eend $?
|
|
|
|
}
|
|
|
|
|
|
|
|
stop() {
|
|
|
|
ebegin "Stopping Samba 4.x daemon... "
|
|
|
|
start-stop-daemon --stop --quiet \
|
2009-04-30 14:49:27 +02:00
|
|
|
--pidfile /var/run/samba/smbd.pid
|
2009-04-30 13:47:22 +02:00
|
|
|
eend $?
|
|
|
|
}
|
|
|
|
|
|
|
|
reload() {
|
|
|
|
ebegin "Reloading Samba 4.x daemon... "
|
2009-04-30 14:49:27 +02:00
|
|
|
killall -HUP samba
|
2009-04-30 13:47:22 +02:00
|
|
|
eend $?
|
|
|
|
}
|