[mythtv-users] upstart mythtv-backend

Thomas Mashos thomas at mashos.com
Sat Feb 13 15:26:33 UTC 2016


On Sat, Feb 13, 2016, 7:12 AM Marius Schrecker <marius.schrecker at lyse.net>
wrote:

> I'm banging my head trying to get mythtv-backend to start at boot.
>
> sudo service mythtv-backend start works fine, so it seems like the job is
> just not set to start up.
>
> Googling had brought up a few, similar problems, but all have been to do
> with either mysql not starting or no network, neither of which is the case
> for me.
>
> /etc/init is full of .conf files, including both mysql.conf and
> mythtv-backend.conf, the content of which I'm copying below.
>
> mysql also has a conventional init.d script with symlinks to rc2-5.d, so
> maybe that's starting from there?
>
> I symlinked /etc/init.d/mythtv-backend  to /lib/init/upstart-job, as
> advised on various forums, although it doesn't make much sense to me. When
> invoking it I got
> initctl: Unable to connect to Upstart: Failed to connect to socket
> /com/ubuntu/upstart: Connection refused.
>
> I feel really stupid here, but have managed to avoid upstart up to now.
> Looks like I'll have to learn!
>
> init script follows:
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> *# MythTV Backend servicedescription     "MythTV Backend"author
>  "Mario Limonciello <superm1 at ubuntu.com <superm1 at ubuntu.com>>"start on
> (local-filesystems and net-device-up IFACE=lo and started udev-finish)stop
> on runlevel [016]#should die within 5 seconds, but we don't want data loss,
> so set it to 30#before we send SIGKILLkill timeout 30#if we crash, but not
> quicklyrespawnrespawn limit 2 3600#because we're daemonizing to avoid
> logging to upstart logexpect forkpre-start script     [ -x /usr/sbin/mysqld
> ] || exit 0    for i in `seq 1 30` ; do       /usr/bin/mysqladmin
> --defaults-file=/etc/mysql/debian.cnf ping >/dev/null && exit 0       sleep
> .5    doneend scriptscript        test -f /etc/default/locale && .
> /etc/default/locale || true        LANG=$LANG exec /usr/bin/mythbackend
> --syslog local7 --user mythtv --daemonend script*
>
> BR.
>
> Marius
>
>
>
>
>
>   _______________________________________________
> mythtv-users mailing list
> mythtv-users at mythtv.org
> http://lists.mythtv.org/mailman/listinfo/mythtv-users
> http://wiki.mythtv.org/Mailing_List_etiquette
> MythTV Forums: https://forum.mythtv.org



Look at these MythTV logs. /var/log/mythtv/mythbacjend.log

I don't know why some people think it's not set to start at boot. It's far
more likely that it's starting and dying.
-- 
Thomas Mashos
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mythtv.org/pipermail/mythtv-users/attachments/20160213/80f2c5f6/attachment.html>


More information about the mythtv-users mailing list