summaryrefslogtreecommitdiff
blob: ed80ff209fb867752e2096d319bc1117a0b01c87 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/sbin/runscript
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

KUMO_MANAGER_HOSTNAME="${KUMO_MANAGER_HOSTNAME:-${HOSTNAME}}"
KUMO_MANAGER_EXEC="${KUMO_MANAGER_EXEC:-/usr/bin/kumo-manager}"
KUMO_MANAGER_PID="${KUMO_MANAGER_PID:-/var/run/kumo-manager.pid}"

depend() {
	use net
}

start() {
	ebegin "Starting kumo-manager"
	start-stop-daemon --start --quiet --exec "${KUMO_MANAGER_EXEC}" \
		-- -l "${KUMO_MANAGER_HOSTNAME}" -d "${KUMO_MANAGER_PID}" \
		${KUMO_MANAGER_OPTS}
	eend $?
}

stop() {
	ebegin "Stopping kumo-manager"
	start-stop-daemon --stop --quiet --pidfile "${KUMO_MANAGER_PID}"
	eend $?
}