blob: 9fedb9db5c361c7d5333d6eb033b3e22673db6b3 (
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
|
#!/sbin/runscript
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
KUMO_GATEWAY_HOSTNAME="${KUMO_GATEWAY_HOSTNAME:-${HOSTNAME}}"
KUMO_GATEWAY_EXEC="${KUMO_GATEWAY_EXEC:-/usr/bin/kumo-gateway}"
KUMO_GATEWAY_PID="${KUMO_GATEWAY_PID:-/var/run/kumo-gateway.pid}"
depend() {
use net kumo-manager
}
start() {
ebegin "Starting kumo-gateway"
start-stop-daemon --start --quiet --exec "${KUMO_GATEWAY_EXEC}" \
-- -d "${KUMO_GATEWAY_PID}" ${KUMO_GATEWAY_OPTS}
eend $?
}
stop() {
ebegin "Stopping kumo-gateway"
start-stop-daemon --stop --quiet --pidfile "${KUMO_GATEWAY_PID}"
eend $?
}
|