iwm-overlay/net-fs/samba/files/config-4.0/samba-init

32 lines
561 B
Plaintext
Raw Normal View History

#!/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
}
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 \
--pidfile /var/run/samba/samba.pid
eend $?
}
reload() {
ebegin "Reloading Samba 4.x daemon... "
killall -HUP smbd
eend $?
}