diff options
author | Ben Widawsky | 2015-06-11 18:14:23 -0700 |
---|---|---|
committer | Ben Widawsky | 2015-06-11 18:14:41 -0700 |
commit | 1e04d1482bf63d555ecc060532013bd27bfd9651 (patch) | |
tree | 0071e9fe3ff6ebce698985774e77ca6e9fcaa3e2 /icecreamd | |
download | aur-1e04d1482bf63d555ecc060532013bd27bfd9651.tar.gz |
Initial import
Diffstat (limited to 'icecreamd')
-rw-r--r-- | icecreamd | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/icecreamd b/icecreamd new file mode 100644 index 000000000000..8659713f03d3 --- /dev/null +++ b/icecreamd @@ -0,0 +1,35 @@ +#!/bin/bash +. /etc/icecream.conf + +if test -n "${ICECREAM_NETNAME}"; then + netname="-n ${ICECREAM_NETNAME}" +fi +logfile="" +if test -n "${ICECREAM_LOG_FILE}"; then + touch ${ICECREAM_LOG_FILE} + chown icecc:icecc ${ICECREAM_LOG_FILE} + logfile="-l ${ICECREAM_LOG_FILE}" +fi +nice="" +if test -n "${ICECREAM_NICE_LEVEL}"; then + nice="--nice ${ICECREAM_NICE_LEVEL}" +fi +scheduler="" +if test -n "${ICECREAM_SCHEDULER_HOST}"; then + scheduler="-s ${ICECREAM_SCHEDULER_HOST}" +fi +noremote="" +if test "${ICECREAM_ALLOW_REMOTE}" = "no" 2> /dev/null; then + noremote="--no-remote" +fi +maxjobs="" +if test -n "${ICECREAM_MAX_JOBS}"; then + if test "${ICECREAM_MAX_JOBS}" -eq 0 2> /dev/null; then + maxjobs="-m 1" + noremote="--no-remote" + else + maxjobs="-m ${ICECREAM_MAX_JOBS}" + fi +fi + +/usr/lib/icecream/sbin/iceccd -d ${logfile} ${nice} ${scheduler} ${netname} -b "${ICECREAM_BASEDIR}" ${maxjobs} ${noremote} &>/dev/null |