]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/commitdiff
icecc: Update of initscript.
authorMichael Tremer <michael.tremer@ipfire.org>
Sun, 6 Feb 2011 18:55:23 +0000 (19:55 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Sun, 6 Feb 2011 18:55:23 +0000 (19:55 +0100)
src/initscripts/init.d/icecream

index 6ce466003d2d5a11583ef78ea26af84f35e06c2e..f8fa4e3330d567cb86cc8994383631b9ed70e437 100644 (file)
 . /etc/sysconfig/rc
 . ${rc_functions}
 
 . /etc/sysconfig/rc
 . ${rc_functions}
 
-SCHEDULER=minerva.ipfire.org
+#SCHEDULER=minerva.ipfire.org
+ENABLE_SCHEDULER=on
 JOBS=8
 JOBS=8
-PORT=10244
 
 case "${1}" in
        start)
                boot_mesg "Starting Icecream Daemon..."
 
 case "${1}" in
        start)
                boot_mesg "Starting Icecream Daemon..."
-               /opt/icecream/sbin/iceccd -d -s ${SCHEDULER} -m ${JOBS} -p ${PORT}
+               ARGS="-d -m ${JOBS}"
+               if [ -n "${SCHEDULER}" ]; then
+                       ARGS="${ARGS} -s ${SCHEDULER}"
+               fi
+               /opt/icecream/sbin/iceccd ${ARGS}
                evaluate_retval
                evaluate_retval
-               if ! grep -q "${PORT}" /var/ipfire/xtaccess/config ; then
-                       echo "tcp,0.0.0.0/0,${PORT},on,0.0.0.0,Icecream" >> /var/ipfire/xtaccess/config
-                       /usr/local/bin/setxtaccess
+
+               if [ "${ENABLE_SCHEDULER}" = "on" ]; then
+                       /opt/icecream/sbin/icecc-scheduler -d
                fi
                ;;
                
        stop)
                boot_mesg "Stopping Icecream Daemon..."
                killproc /opt/icecream/sbin/iceccd
                fi
                ;;
                
        stop)
                boot_mesg "Stopping Icecream Daemon..."
                killproc /opt/icecream/sbin/iceccd
+
+               if [ "${ENABLE_SCHEDULER}" = "on" ]; then
+                       killproc /opt/icecream/sbin/icecc-scheduler
+               fi
                ;;
 
        restart)
                ;;
 
        restart)