summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Lecher <jlec@gentoo.org>2015-08-20 11:03:25 +0200
committerJustin Lecher <jlec@gentoo.org>2015-08-20 11:12:32 +0200
commit58cc77beece4a92fcd1c6661a9b0dcb0644eab53 (patch)
tree4a76337139909c3bfea8745fe14c5f0405334294 /dev-python/celery
parentapp-backup/duply: Version Bump (diff)
downloadgentoo-58cc77beece4a92fcd1c6661a9b0dcb0644eab53.tar.gz
gentoo-58cc77beece4a92fcd1c6661a9b0dcb0644eab53.tar.bz2
gentoo-58cc77beece4a92fcd1c6661a9b0dcb0644eab53.zip
dev-python/celery: Fix indentions in init file
Package-Manager: portage-2.2.20.1 Signed-off-by: Justin Lecher <jlec@gentoo.org>
Diffstat (limited to 'dev-python/celery')
-rw-r--r--dev-python/celery/files/celery.initd-r134
-rw-r--r--dev-python/celery/metadata.xml2
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 @@
<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>