aboutsummaryrefslogtreecommitdiff
path: root/debian/jellyfin.upstart
diff options
context:
space:
mode:
Diffstat (limited to 'debian/jellyfin.upstart')
-rw-r--r--debian/jellyfin.upstart20
1 files changed, 20 insertions, 0 deletions
diff --git a/debian/jellyfin.upstart b/debian/jellyfin.upstart
new file mode 100644
index 0000000..ef5bc9b
--- /dev/null
+++ b/debian/jellyfin.upstart
@@ -0,0 +1,20 @@
+description "jellyfin daemon"
+
+start on (local-filesystems and net-device-up IFACE!=lo)
+stop on runlevel [!2345]
+
+console log
+respawn
+respawn limit 10 5
+
+kill timeout 20
+
+script
+ set -x
+ echo "Starting $UPSTART_JOB"
+
+ # Log file
+ logger -t "$0" "DEBUG: `set`"
+ . /etc/default/jellyfin
+ exec su -u $JELLYFIN_USER -c /usr/bin/jellyfin $JELLYFIN_ARGS
+end script
bgstack15