From 58cc77beece4a92fcd1c6661a9b0dcb0644eab53 Mon Sep 17 00:00:00 2001 From: Justin Lecher Date: Thu, 20 Aug 2015 11:03:25 +0200 Subject: [PATCH] dev-python/celery: Fix indentions in init file Package-Manager: portage-2.2.20.1 Signed-off-by: Justin Lecher --- dev-python/celery/files/celery.initd-r1 | 34 ++++++++++++------------- dev-python/celery/metadata.xml | 2 +- 2 files changed, 18 insertions(+), 18 deletions(-) diff --git a/dev-python/celery/files/celery.initd-r1 b/dev-python/celery/files/celery.initd-r1 index 2fcd6d95fbdf..cdb8e09416a6 100644 --- a/dev-python/celery/files/celery.initd-r1 +++ b/dev-python/celery/files/celery.initd-r1 @@ -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 } diff --git a/dev-python/celery/metadata.xml b/dev-python/celery/metadata.xml index 1808f87d128e..d04c5ae3ae4d 100644 --- a/dev-python/celery/metadata.xml +++ b/dev-python/celery/metadata.xml @@ -6,7 +6,7 @@ celery - Enables redis support + Enables redis support Enables Amazon SQS transport module for celery Enable logging and deployment via ZeroMQ Enable support of yaml as a configuration file format -- 2.26.2