diff options
Diffstat (limited to 'dev-python/mwlib/files/mw-qserve.initd')
-rw-r--r-- | dev-python/mwlib/files/mw-qserve.initd | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/dev-python/mwlib/files/mw-qserve.initd b/dev-python/mwlib/files/mw-qserve.initd new file mode 100644 index 00000000000..ac9dd78016b --- /dev/null +++ b/dev-python/mwlib/files/mw-qserve.initd @@ -0,0 +1,21 @@ +#!/sbin/runscript +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +description="mw-qserve is a job queue server used to distribute and manage jobs" + +command="/usr/bin/mw-qserve" +command_args="--interface=${MW_QSERVE_INTERFACE} --port=${MW_QSERVE_PORT}" + +pidfile="/var/run/${SVCNAME}.pid" +command_background="yes" + +start_stop_daemon_args="--user ${MW_QSERVE_USER:-mwlib} \ + --group ${MW_QSERVE_GROUP:-mwlib} \ + ${MW_QSERVE_LOGFILE:+--stderr ${MW_QSERVE_LOGFILE}} \ + ${MW_QSERVE_LOGFILE:+--stdout ${MW_QSERVE_LOGFILE}}" + +depend() { + need net localmount +} |