summaryrefslogtreecommitdiff
blob: b08013e059ff00fa46bda6e1a81baa9eb45d91fe (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
#!/sbin/openrc-run
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$

description="nserve is a HTTP server which distributes received jobs to a mw-qserve instance"

command="/usr/bin/nserve"
command_args="--port=${NSERVE_PORT} \
	--interface=${NSERVE_INTERFACE} \
	--qserve=${MW_QSERVE_INTERFACE}:${MW_QSERVE_PORT}"

pidfile="/var/run/${SVCNAME}.pid"
command_background="yes"

start_stop_daemon_args="--user ${NSERVE_USER:-mwlib} \
	--group ${NSERVE_GROUP:-mwlib} \
	${NSERVE_LOGFILE:+--stderr ${NSERVE_LOGFILE}} \
	${NSERVE_LOGFILE:+--stdout ${NSERVE_LOGFILE}}"

depend() {
	need net localmount
	use mw-qserve
}