aboutsummaryrefslogtreecommitdiff
path: root/debian/conf/jellyfin.upstart
diff options
context:
space:
mode:
authorJoshua M. Boniface <joshua@boniface.me>2024-02-03 16:37:47 -0500
committerJoshua M. Boniface <joshua@boniface.me>2024-02-04 02:20:03 -0500
commit1784777c50950867b4d1dc815655e29e6687756b (patch)
treeb346dc57b12cc233e106a0ea8c979be96ab0cd09 /debian/conf/jellyfin.upstart
parentAdd combined Debian build (diff)
downloadjellyfin-packaging-1784777c50950867b4d1dc815655e29e6687756b.tar.gz
jellyfin-packaging-1784777c50950867b4d1dc815655e29e6687756b.tar.bz2
jellyfin-packaging-1784777c50950867b4d1dc815655e29e6687756b.zip
Fix naming of per-package files
Diffstat (limited to 'debian/conf/jellyfin.upstart')
-rw-r--r--debian/conf/jellyfin.upstart20
1 files changed, 20 insertions, 0 deletions
diff --git a/debian/conf/jellyfin.upstart b/debian/conf/jellyfin.upstart
new file mode 100644
index 0000000..ef5bc9b
--- /dev/null
+++ b/debian/conf/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