aboutsummaryrefslogtreecommitdiff
path: root/debian/conf/jellyfin.service
diff options
context:
space:
mode:
Diffstat (limited to 'debian/conf/jellyfin.service')
-rw-r--r--debian/conf/jellyfin.service17
1 files changed, 17 insertions, 0 deletions
diff --git a/debian/conf/jellyfin.service b/debian/conf/jellyfin.service
new file mode 100644
index 0000000..2cc49f7
--- /dev/null
+++ b/debian/conf/jellyfin.service
@@ -0,0 +1,17 @@
+[Unit]
+Description = Jellyfin Media Server
+After = network-online.target
+
+[Service]
+Type = simple
+EnvironmentFile = /etc/default/jellyfin
+User = jellyfin
+Group = jellyfin
+WorkingDirectory = /var/lib/jellyfin
+ExecStart = /usr/bin/jellyfin $JELLYFIN_WEB_OPT $JELLYFIN_FFMPEG_OPT $JELLYFIN_SERVICE_OPT $JELLYFIN_NOWEBAPP_OPT $JELLYFIN_ADDITIONAL_OPTS
+Restart = on-failure
+TimeoutSec = 15
+SuccessExitStatus=0 143
+
+[Install]
+WantedBy = multi-user.target
bgstack15