mirror of
https://github.com/meeb/tubesync.git
synced 2025-06-23 05:26:37 +00:00
Delete config/root/etc/s6-overlay/s6-rc.d/celery-worker/run
This commit is contained in:
parent
170671d4ec
commit
1ba97749df
@ -1,24 +0,0 @@
|
|||||||
#!/usr/bin/with-contenv bash
|
|
||||||
|
|
||||||
UMASK_SET=${UMASK_SET:-022}
|
|
||||||
umask "$UMASK_SET"
|
|
||||||
|
|
||||||
cd /app || exit
|
|
||||||
|
|
||||||
PIDFILE=/run/app/celery-worker.pid
|
|
||||||
|
|
||||||
if [ -f "${PIDFILE}" ]
|
|
||||||
then
|
|
||||||
PID=$(cat $PIDFILE)
|
|
||||||
echo "Unexpected PID file exists at ${PIDFILE} with PID: ${PID}"
|
|
||||||
if kill -0 $PID
|
|
||||||
then
|
|
||||||
echo "Killing old gunicorn process with PID: ${PID}"
|
|
||||||
kill -9 $PID
|
|
||||||
fi
|
|
||||||
echo "Removing stale PID file: ${PIDFILE}"
|
|
||||||
rm ${PIDFILE}
|
|
||||||
fi
|
|
||||||
|
|
||||||
#exec s6-setuidgid app \
|
|
||||||
# /usr/local/bin/celery --workdir /app -A tubesync worker --pidfile ${PIDFILE} -l INFO
|
|
Loading…
Reference in New Issue
Block a user