← Back to team overview

mythbuntu-bugs team mailing list archive

[Bug 886321] Re: Upstart issue and mythbackend

 

Here it is.  I have not touched the settings since it was installed.
The conf file is at default.

/etc/init/mythtv-backend.conf
____________________________

# MythTV Backend service

description     "MythTV Backend"
author          "Mario Limonciello <superm1@xxxxxxxxxx>"

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 SIGKILL
kill timeout 30

#if we crash, but not quickly
respawn
respawn limit 2 3600

#because we're daemonizing to avoid logging to upstart log
expect fork

pre-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
    done
end script

script
	test -f /etc/default/locale && . /etc/default/locale || true
	LANG=$LANG exec /usr/bin/mythbackend --syslog local7 --user mythtv --daemon
end script

-- 
You received this bug notification because you are a member of Mythbuntu
Bug Team, which is subscribed to mythtv in Ubuntu.
https://bugs.launchpad.net/bugs/886321

Title:
  Upstart issue and mythbackend

Status in “mythtv” package in Ubuntu:
  Confirmed

Bug description:
  Strange problem with the backend during upstart on Ubuntu oneiric: the
  syslog tells me that the backend respawns too quickly and thus gives
  up on trying to start it via upstart.

  Steps to reproduce:

  1) Reboot system 2) Check with 'ps' and the syslog

  I changed the interface from lo to eth0 in the pre-conditions and also
  changed .5 to 60 in the script sections but to no avail...

  ProblemType: Bug
  DistroRelease: Ubuntu 11.10
  Package: mythtv 2:0.24.0+fixes.20110908.1de0431-0ubuntu1
  ProcVersionSignature: Ubuntu 3.0.0-12.20-generic 3.0.4
  Uname: Linux 3.0.0-12-generic x86_64
  ApportVersion: 1.23-0ubuntu3
  Architecture: amd64
  Date: Fri Nov  4 20:50:50 2011
  Installed_mythtv_dbg: 0.0
  PackageArchitecture: all
  ProcEnviron:
   LANGUAGE=en_US:en
   LANG=en_US.UTF-8
   SHELL=/bin/bash
  SourcePackage: mythtv
  UpgradeStatus: Upgraded to oneiric on 2011-10-15 (20 days ago)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/mythtv/+bug/886321/+subscriptions


References