mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-07-25 21:08:35 -07:00
dev-python/celery: Fix indentions in init file
Package-Manager: portage-2.2.20.1 Signed-off-by: Justin Lecher <jlec@gentoo.org>
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user