<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">On 13/02/16 15:12, Marius Schrecker
wrote:<br>
</div>
<blockquote cite="mid:878-56bf4800-1b-3ff6c140@226299763"
type="cite">I'm banging my head trying to get mythtv-backend to
start at boot.<br>
<br>
sudo service mythtv-backend start works fine, so it seems like the
job is just not set to start up.<br>
<br>
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.<br>
<br>
/etc/init is full of .conf files, including both mysql.conf and
mythtv-backend.conf, the content of which I'm copying below.<br>
<br>
mysql also has a conventional init.d script with symlinks to
rc2-5.d, so maybe that's starting from there?<br>
<br>
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 <br>
initctl: Unable to connect to Upstart: Failed to connect to socket
/com/ubuntu/upstart: Connection refused.<br>
<br>
I feel really stupid here, but have managed to avoid upstart up to
now. Looks like I'll have to learn!<br>
<br>
init script follows:<br>
<em># MythTV Backend service<br>
<br>
description "MythTV Backend"<br>
author "Mario Limonciello <a class="moz-txt-link-rfc2396E" href="mailto:superm1@ubuntu.com"><superm1@ubuntu.com></a>"<br>
<br>
start on (local-filesystems and net-device-up IFACE=lo and
started udev-finish)<br>
stop on runlevel [016]<br>
<br>
#should die within 5 seconds, but we don't want data loss, so
set it to 30<br>
#before we send SIGKILL<br>
kill timeout 30<br>
<br>
#if we crash, but not quickly<br>
respawn<br>
respawn limit 2 3600<br>
<br>
#because we're daemonizing to avoid logging to upstart log<br>
expect fork<br>
<br>
pre-start script <br>
[ -x /usr/sbin/mysqld ] || exit 0<br>
for i in `seq 1 30` ; do<br>
/usr/bin/mysqladmin --defaults-file=/etc/mysql/debian.cnf
ping >/dev/null && exit 0<br>
sleep .5<br>
done<br>
end script<br>
<br>
script<br>
test -f /etc/default/locale && .
/etc/default/locale || true<br>
LANG=$LANG exec /usr/bin/mythbackend --syslog local7
--user mythtv --daemon<br>
end script</em><br>
<br>
BR.<br>
<br>
Marius<br>
<br>
<br>
<br>
<br>
<br>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
mythtv-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:mythtv-users@mythtv.org">mythtv-users@mythtv.org</a>
<a class="moz-txt-link-freetext" href="http://lists.mythtv.org/mailman/listinfo/mythtv-users">http://lists.mythtv.org/mailman/listinfo/mythtv-users</a>
<a class="moz-txt-link-freetext" href="http://wiki.mythtv.org/Mailing_List_etiquette">http://wiki.mythtv.org/Mailing_List_etiquette</a>
MythTV Forums: <a class="moz-txt-link-freetext" href="https://forum.mythtv.org">https://forum.mythtv.org</a>
</pre>
</blockquote>
I am running 0.28pre from the ppa, on Ubuntu 15.10, from memory all
I had to do was :<br>
<br>
sudo systemctl enable mythtv-backend.service<br>
<br>
Mike<br>
</body>
</html>