Revert "Update README.md"
This reverts commit d6d609af767bc74eff3ca59a64b302a197397e10
This commit is contained in:
parent
7b9343bc89
commit
460e3f4a4b
5 changed files with 103 additions and 0 deletions
29
deploy/Gentoo/funkwhale_server
Normal file
29
deploy/Gentoo/funkwhale_server
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
#!/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 $?
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue