dev-python/celery: Fix indentions in init file
authorJustin Lecher <jlec@gentoo.org>
Thu, 20 Aug 2015 09:03:25 +0000 (11:03 +0200)
committerJustin Lecher <jlec@gentoo.org>
Thu, 20 Aug 2015 09:12:32 +0000 (11:12 +0200)
Package-Manager: portage-2.2.20.1
Signed-off-by: Justin Lecher <jlec@gentoo.org>
dev-python/celery/files/celery.initd-r1
dev-python/celery/metadata.xml

index 2fcd6d95fbdff71ae7b85cd0500a298cb9abffc7..cdb8e09416a6b5ce31785b5b8f7048682e05681f 100644 (file)
@@ -6,7 +6,7 @@
 extra_started_commands="reload"
 
 depend() {
-        need net
+       need net
        use rabbitmq redis logger dns
 }
 
@@ -95,11 +95,11 @@ wait_pid () {
 start_workers() {
        yesno "${CELERYD_ENABLED}" || return 0
 
-       $CELERYD_MULTI start $CELERYD_NODES $DAEMON_OPTS        \
-                --pidfile="$CELERYD_PID_FILE"      \
-                --logfile="$CELERYD_LOG_FILE"      \
-                --loglevel="$CELERYD_LOG_LEVEL"    \
-                $CELERYD_OPTS
+       $CELERYD_MULTI start $CELERYD_NODES $DAEMON_OPTS \
+                               --pidfile="$CELERYD_PID_FILE" \
+                               --logfile="$CELERYD_LOG_FILE" \
+                               --loglevel="$CELERYD_LOG_LEVEL" \
+                               $CELERYD_OPTS
 }
 
 stop_workers() {
@@ -111,13 +111,13 @@ stop_workers() {
 
        # Wait for each node
        for node in $CELERYD_NODES; do
-           local pidfile=${CELERYD_PID_FILE/\%n/$node}
-           local PID=$(cat "${pidfile}" 2>/dev/null)
-           while [[ -n "$PID" && "${timeout}" -ge 1 ]] ; do
+               local pidfile=${CELERYD_PID_FILE/\%n/$node}
+               local PID=$(cat "${pidfile}" 2>/dev/null)
+               while [[ -n "$PID" && "${timeout}" -ge 1 ]] ; do
                kill -0 $PID 2>/dev/null || break
                timeout=$(($timeout - 1))
                sleep 0.5
-           done
+               done
        done
 
        [[ "${timeout}" -lt 1 ]] && return 1
@@ -127,11 +127,11 @@ stop_workers() {
 restart_workers() {
        yesno "${CELERYD_ENABLED}" || return 0
 
-       $CELERYD_MULTI restart $CELERYD_NODES $DAEMON_OPTS      \
-                --pidfile="$CELERYD_PID_FILE"    \
-                --logfile="$CELERYD_LOG_FILE"    \
-                --loglevel="$CELERYD_LOG_LEVEL"  \
-                $CELERYD_OPTS
+       $CELERYD_MULTI restart $CELERYD_NODES $DAEMON_OPTS \
+               --pidfile="$CELERYD_PID_FILE" \
+               --logfile="$CELERYD_LOG_FILE" \
+               --loglevel="$CELERYD_LOG_LEVEL" \
+               $CELERYD_OPTS
 }
 
 # celerybeat
@@ -140,7 +140,7 @@ start_beat() {
 
        ebegin "Starting celerybeat"
        $CELERYBEAT $CELERYBEAT_OPTS $DAEMON_OPTS --detach \
-                --pidfile="$CELERYBEAT_PID_FILE"
+               --pidfile="$CELERYBEAT_PID_FILE"
        eend $?
 }
 
@@ -210,5 +210,5 @@ status() {
        checkconfig || return 1
 
        celery_chdir && \
-           ${CELERYCTL} status
+               ${CELERYCTL} status
 }
index 1808f87d128e54e299316cf421ca5eafb084c997..d04c5ae3ae4d5dd91b9b3ea04339be2d3a30bf09 100644 (file)
@@ -6,7 +6,7 @@
                <remote-id type="pypi">celery</remote-id>
        </upstream>
        <use>
-               <flag name='redis'>Enables redis support</flag>
+               <flag name="redis">Enables redis support</flag>
                <flag name="sqs">Enables Amazon SQS transport module for celery</flag>
                <flag name="zeromq">Enable logging and deployment via ZeroMQ</flag>
                <flag name="yaml">Enable support of yaml as a configuration file format</flag>