2018-12-09 21:41:49 +00:00
|
|
|
description "jellyfin daemon"
|
2018-08-08 05:18:59 +00:00
|
|
|
|
|
|
|
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`"
|
2018-12-13 00:14:20 +00:00
|
|
|
. /etc/default/jellyfin
|
2018-12-15 02:21:48 +00:00
|
|
|
exec su -u $JELLYFIN_USER -c /usr/bin/jellyfin $JELLYFIN_ARGS
|
2018-08-08 05:18:59 +00:00
|
|
|
end script
|