]> git.ipfire.org Git - ipfire-3.x.git/commitdiff
Change behaviour of cluster.
authorMichael Tremer <michael.tremer@ipfire.org>
Wed, 29 Jul 2009 18:26:55 +0000 (20:26 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Wed, 29 Jul 2009 18:26:55 +0000 (20:26 +0200)
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.

tools/make-cluster

index 6b24fc223644a634163783dbe3d7b027b1d95c1a..52e414d2b8491580c0b4132b1f47d6847fb5e072 100644 (file)
@@ -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() {