All the command lines below should be executed as root.
Systemd offers a convenient way to manage your Funkwhale instance if you’re not using docker.
We’ll see how to setup systemd to properly start a Funkwhale instance.
First, download the sample unitfiles:
curl -L -o "/etc/systemd/system/funkwhale.target" "https://dev.funkwhale.audio/funkwhale/funkwhale/raw/0.20.1/deploy/funkwhale.target" curl -L -o "/etc/systemd/system/funkwhale-server.service" "https://dev.funkwhale.audio/funkwhale/funkwhale/raw/0.20.1/deploy/funkwhale-server.service" curl -L -o "/etc/systemd/system/funkwhale-worker.service" "https://dev.funkwhale.audio/funkwhale/funkwhale/raw/0.20.1/deploy/funkwhale-worker.service" curl -L -o "/etc/systemd/system/funkwhale-beat.service" "https://dev.funkwhale.audio/funkwhale/funkwhale/raw/0.20.1/deploy/funkwhale-beat.service"
This will download three unitfiles:
funkwhale-server.serviceto launch the Funkwhale web server
funkwhale-worker.serviceto launch the Funkwhale task worker
funkwhale-beat.serviceto launch the Funkwhale task beat (this is for recurring tasks)
funkwhale.targetto easily stop and start all of the services at once
You can of course review and edit them to suit your deployment scenario if needed, but the defaults should be fine.
Once the files are downloaded, reload systemd:
And start the services:
systemctl start funkwhale.target
To ensure all Funkwhale processes are started automatically after a reboot, run:
systemctl enable funkwhale-server systemctl enable funkwhale-worker systemctl enable funkwhale-beat
You can check the statuses of all processes like this:
systemctl status funkwhale-\*