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 <[email protected]>"

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 Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/886321

Title:
  Upstart issue and mythbackend

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

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to