Skip to main content
Topic: dinit script for jellyfin (Read 255 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

dinit script for jellyfin

I need a dinit script to start the jellyfin media server.
The systemd unit file is complex and i can't figure how to translate it to the "dinit way".

Any help is really appreciated :)

Many thanks

 

Re: dinit script for jellyfin

Reply #1
this should work for you:

Code: [Select]
# 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