From: Michael Tremer Date: Wed, 29 Jul 2009 18:26:55 +0000 (+0200) Subject: Change behaviour of cluster. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6dee14d3abd6ca657d59a486ee627f06d0c4e6c0;p=ipfire-3.x.git Change behaviour of cluster. ICECC=off doesn't send jobs to the internet and doesn't receive any. ICECC_SCHEDULER=broadcast allows the daemon to broadcast for a cluster in the local broadcast domain. --- diff --git a/tools/make-cluster b/tools/make-cluster index 6b24fc223..52e414d2b 100644 --- a/tools/make-cluster +++ b/tools/make-cluster @@ -63,8 +63,12 @@ function iceccd_start() { if [ -n "$(pidof iceccd)" ]; then return fi - ${TOOLS_DIR}/usr/sbin/iceccd -d -s ${ICECC_SCHEDULER} -m ${ICECC_JOBS-8} \ - -N ${HOSTNAME} -p ${ICECC_PORT-10245} + ${TOOLS_DIR}/usr/sbin/iceccd -d \ + -m ${ICECC_JOBS-8} \ + -N ${HOSTNAME} \ + -p ${ICECC_PORT-10245} \ + $([ "${ICECC}" == "off" ] && echo "--no-remote") \ + $([ "${ICECC_SCHEDULER}" != "broadcast" ] && echo "-s ${ICECC_SCHEDULER}") } function iceccd_stop() {