diff options
Diffstat (limited to 'net-misc/kumofs/files/kumo-server.initd')
-rw-r--r-- | net-misc/kumofs/files/kumo-server.initd | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/net-misc/kumofs/files/kumo-server.initd b/net-misc/kumofs/files/kumo-server.initd new file mode 100644 index 0000000..4af3503 --- /dev/null +++ b/net-misc/kumofs/files/kumo-server.initd @@ -0,0 +1,26 @@ +#!/sbin/runscript +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +KUMO_SERVER_HOSTNAME="${KUMO_SERVER_HOSTNAME:-${HOSTNAME}}" +KUMO_SERVER_EXEC="${KUMO_SERVER_EXEC:-/usr/bin/kumo-server}" +KUMO_SERVER_PID="${KUMO_SERVER_PID:-/var/run/kumo-server.pid}" + +depend() { + use net kumo-manager +} + +start() { + ebegin "Starting kumo-server" + start-stop-daemon --start --quiet --exec "${KUMO_SERVER_EXEC}" \ + -- -l "${KUMO_SERVER_HOSTNAME}" -d "${KUMO_SERVER_PID}" \ + ${KUMO_SERVER_OPTS} + eend $? +} + +stop() { + ebegin "Stopping kumo-server" + start-stop-daemon --stop --quiet --pidfile "${KUMO_SERVER_PID}" + eend $? +} |