aboutsummaryrefslogtreecommitdiff
path: root/debian/jellyfin.upstart
diff options
context:
space:
mode:
authorJoshua M. Boniface <joshua@boniface.me>2020-03-22 16:01:33 -0400
committerJoshua M. Boniface <joshua@boniface.me>2020-03-22 16:01:33 -0400
commit8b620ed26addec0f42e2797e3e4d45fbd68b0f23 (patch)
tree33e4fa49ce16f540867986f2a27f335bd0a36c1d /debian/jellyfin.upstart
parent28f7df652015013ff5cedb10971fb69c8e41d2b1 (diff)
Move Debian folder to root of repo
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 0000000000..ef5bc9bcaf
--- /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