Skip to content
Snippets Groups Projects
Commit fca3a308 authored by Alexander's avatar Alexander
Browse files

Upload New File

parent 82bfc002
No related branches found
No related tags found
No related merge requests found
#!/sbin/openrc-run
NAME=funkwhaleworker
PIDFILE=/var/run/$NAME.pid
USER=funkwhale
WORKDIR=/srv/funkwhale/api
Celery=/srv/funkwhale/virtualenv/bin/celery
WORKER_ARGS=" -A funkwhale_api.taskapp worker -l INFO"
depend() {
need net
}
start() {
ebegin "Starting Funkwhale Worker"
cd /srv/funkwhale/api
set -a && source /srv/funkwhale/config/.env && set +a
echo ' start beat'
start-stop-daemon --start --user $USER --make-pidfile --pidfile $PIDFILE -d $WORKDIR --exec $Celery -- $WORKER_ARGS >> /var/log/funk/worker.log 2>&1&
echo 'Started Worker'
echo
eend $?
}
stop() {
ebegin "Stopping Funkwhale Worker"
start-stop-daemon --stop --pidfile $PIDFILE
eend $?
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment