aboutsummaryrefslogtreecommitdiff
path: root/debian/jellyfin.service
diff options
context:
space:
mode:
Diffstat (limited to 'debian/jellyfin.service')
-rw-r--r--debian/jellyfin.service16
1 files changed, 9 insertions, 7 deletions
diff --git a/debian/jellyfin.service b/debian/jellyfin.service
index 751d19f895..982608a7e0 100644
--- a/debian/jellyfin.service
+++ b/debian/jellyfin.service
@@ -1,12 +1,14 @@
[Unit]
-Description=Jellyfin Media Server
-After=network.target
+Description = Jellyfin Media Server
+After = network.target
[Service]
-User=jellyfin
-ExecStart=/usr/bin/dotnet /usr/lib/jellyfin/bin/EmbyServer.dll
-Restart=on-abort
-TimeoutSec=20
+Type = simple
+EnvironmentFile = /etc/default/jellyfin
+User = jellyfin
+ExecStart = /usr/bin/dotnet ${JELLYFIN_EXE} -programdata ${JELLYFIN_DATA} -restartpath ${JELLYFIN_RESTART_SCRIPT} ${JELLYFIN_ADD_OPTS}
+Restart = on-abort
+TimeoutSec = 20
[Install]
-WantedBy=multi-user.target
+WantedBy = multi-user.target