aboutsummaryrefslogtreecommitdiff
path: root/debian/conf/jellyfin.upstart
blob: ef5bc9bcaf16cc90eb380c97201a9777ffea94f8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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