diff options
Diffstat (limited to 'dev-python/mwlib/files/nslave.initd')
-rw-r--r-- | dev-python/mwlib/files/nslave.initd | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/dev-python/mwlib/files/nslave.initd b/dev-python/mwlib/files/nslave.initd new file mode 100644 index 000000000000..8683c8d23ccd --- /dev/null +++ b/dev-python/mwlib/files/nslave.initd @@ -0,0 +1,27 @@ +#!/sbin/runscript +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-python/mwlib/files/nslave.initd,v 1.1 2013/07/01 13:56:29 dev-zero Exp $ + +description="nslave pulls new jobs from a mw-qserve instance" + +command="/usr/bin/nslave" +command_args="--cachedir=${NSLAVE_CACHEDIR} \ + --serve-files-address=${NSLAVE_ADDRESS} \ + --serve-files-port=${NSLAVE_PORT} \ + --url=${NSLAVE_URL} \ + --numprocs=${NSLAVE_NUMPROCS}" + +pidfile="/var/run/${SVCNAME}.pid" +command_background="yes" + +start_stop_daemon_args="--user ${NSLAVE_USER:-mwlib} \ + --group ${NSLAVE_GROUP:-mwlib} \ + ${NSLAVE_LOGFILE-:+-stderr ${NSLAVE_LOGFILE}} \ + ${NSLAVE_LOGFILE:+--stdout ${NSLAVE_LOGFILE}} \ + --umask ${NSLAVE_UMASK}" + +depend() { + need net localmount + use mw-qserve +} |