Re: dinit script for jellyfin
Reply #1 –
this should work for you:
# Jellyfin Media Server
type = process
command = jellyfin --cachedir /var/cache/jellyfin --configdir /var/lib/jellyfin/config --datadir /var/lib/jellyfin --logdir /var/log/jellyfin
run-as = jellyfin
working-dir = /var/lib/jellyfin
waits-for = basic # adjust as needed
additionally you should create a system user and group called jellyfin as well as the following directories, all with ownership jellyfin:jellyfin and mode 0750: /var/cache/jellyfin, /var/lib/jellyfin, and /var/log/jellyfin