Torsten Kurbad
52f332feda
git-svn-id: svn+ssh://svnintern.kmrc.de/projects/gentoo/iwm-overlay@9310 cbe59ace-07ea-0310-918e-868702b5370d
34 lines
587 B
Plaintext
34 lines
587 B
Plaintext
#!/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
|
|
}
|
|
|
|
DAEMON="/usr/sbin/samba"
|
|
|
|
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/smbd.pid
|
|
eend $?
|
|
}
|
|
|
|
reload() {
|
|
ebegin "Reloading Samba 4.x daemon... "
|
|
killall -HUP samba
|
|
eend $?
|
|
}
|