linamh/net-fs/samba/files/samba4.initd
2013-04-20 19:16:45 +02:00

32 lines
657 B
Plaintext

#!/sbin/runscript
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-fs/samba/files/samba4.initd,v 1.3 2011/09/14 22:52:33 polynomial-c Exp $
extra_started_commands="reload"
description="The samba daemon init script"
description_reload="Reloads the samba daemon"
depend() {
need net
}
start() {
ebegin "Starting samba"
start-stop-daemon --start --exec /usr/sbin/samba
eend $?
}
stop() {
ebegin "Stopping samba"
start-stop-daemon --stop --pidfile /var/run/samba/samba.pid
eend $?
}
reload() {
ebegin "Reloading samba"
killall -HUP samba
eend $?
}