Upstart mythjobqueue Configuration

From MythTV Official Wiki
Jump to: navigation, search

Some newer Linux distributions replace the traditional initscript startup management process with a program called upstart, which does things differently; here are some notes on how to run mythjobqueue with upstart.

Default configuration

Author M Watson
Description Upstart configuration file for starting mythjobqueue.

Save the configuration file below in /etc/init/mythtv-jobqueue.conf and create a symlink referencing the upstart-job binary in /etc/init.d or /etc/rc.d/init.d.

ln -s /lib/init/upstart-job /etc/init.d/mythtv-jobqueue

Script.png /etc/init/mythtv-jobqueue.conf

# MythTV Jobqueue service
# For MythTV Version 0.25
description     "MythTV Jobqueue"
author          "M. Watson"

start on (local-filesystems and net-device-up IFACE!=lo and started udev-finish)
stop on runlevel [016]

respawn limit 2 3600

         test -f /etc/default/locale && . /etc/default/locale || true
         exec sudo -H -u mythtv LANG=$LANG /usr/bin/mythjobqueue --syslog local7
end script