cd98434459
git-svn-id: https://svn.disconnected-by-peer.at/svn/linamh/trunk/linamh@2897 6952d904-891a-0410-993b-d76249ca496b
32 lines
540 B
Plaintext
32 lines
540 B
Plaintext
#!/sbin/runscript
|
|
# Copyright 1999-2009 Gentoo Foundation
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
# $Header: $
|
|
|
|
opts="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 $?
|
|
}
|