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

Upload New File

parent e4434acb
No related branches found
No related tags found
No related merge requests found
#!/sbin/openrc-run
NAME=funkwhaleserver
PIDFILE=/var/run/$NAME.pid
USER=funkwhale
DAEMON_ARGS="-b 127.0.0.1 -p 5000 config.asgi:application --proxy-headers "
Daphne=/srv/funkwhale/virtualenv/bin/daphne
WORKDIR=/srv/funkwhale/api
depend() {
need net redis postgresql nginx funkwhale_beat funkwhale_worker
}
start() {
ebegin "Starting Funkwhale Server"
cd /srv/funkwhale/api
set -a && source /srv/funkwhale/config/.env && set +a
echo 'Starting Funkwhale Server'
start-stop-daemon --start --user $USER --make-pidfile --pidfile $PIDFILE -d $WORKDIR --exec $Daphne -- $DAEMON_ARGS >> /var/log/funk/daphne.log 2>&1&
echo 'Funkwhale Server started'
echo
eend $?
}
stop() {
ebegin "Stopping Funkwhale"
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