← Back to team overview

mythbuntu-bugs team mailing list archive

[Bug 886321] Re: Upstart issue and mythbackend

 

This gets even stranger. After instrumentation, the .conf file looks
like this (just to be on the safe side...):

# 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]

#expect fork 
respawn
respawn limit 2 3600

pre-start script
        logger -t "Myth upstart: before mysqld"
    [ -x /usr/sbin/mysqld ] || exit 0
        logger -t "Myth upstart: after mysqld"
    for i in `seq 1 30` ; do
        logger -t "Myth upstart: i=$i"
       /usr/bin/mysqladmin --defaults-file=/etc/mysql/debian.cnf ping && exit 0
       sleep .5
    done
end script

script
        test -f /etc/default/locale && . /etc/default/locale || true
        logger -t "Myth upstart" `date`
        LANG=$LANG /usr/bin/mythbackend --logfile /var/log/mythtv/mythbackend.log --user mythtv
end script

The only output in the syslog is like this after a reboot:

Dec 25 13:22:25 htpc Myth upstart: Sun Dec 25 13:22:25 CET 2011
Dec 25 13:22:29 htpc Myth upstart: Sun Dec 25 13:22:29 CET 2011
Dec 25 13:22:29 htpc Myth upstart: Sun Dec 25 13:22:29 CET 2011

upstart respawns the job as defined in the stanza, but the pre-start
script apparently is never executed and the backend just exits without
logging anything.

Could this be an upstart bug?!?

-- 
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:
  Incomplete

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