ARGS line in /etc/defaults/mythbackend causes init script to hang

Bug #450278 reported by Eggert on 2009-10-13
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Mythbuntu
Fix Released
Critical
Unassigned
mythtv (Ubuntu)
Undecided
Unassigned

Bug Description

I am not sure if this is an actual bug in mythbuntu, but I have been using mythtv-trunk weekly builds (installing a new upgrade weekly), on 9.04 and this happened when I upgraded yesterday, even though I did not change any other settings.

Basically the symptom is that the /etc/init.d/mythbackend script hangs, causing both the "apt-get upgrade" operation and normal machine bootup to fail.

I found that the problem was that the "ARGS" environment variable, set in /etc/init.d/mythbackend, is overridden in /etc/default/mythbackend, and the original value "--daemon --logfile /var/log/mythtv/mythbackend.log --pidfile $RUNDIR/$NAME.pid", is replaced with "--logfile /var/log/mythtv/mythbackend.log". Since the "--daemon" argument is missing, mythbackend never returns control to the init script

Related branches

MarcRandolph (mrand) wrote :

Howdy, and thank you for not only creating this ticket, but proposing a fix. It is greatly appreciated!

Changed in mythbuntu:
importance: Undecided → Critical
status: New → Triaged
milestone: none → karmic-rc
Mario Limonciello (superm1) wrote :

Will be fixed in today's daily.

If you would like to workaround it for now, please add "--daemon" to /etc/default/mythtv-backend

Changed in mythbuntu:
status: Triaged → Fix Committed
Changed in mythtv (Ubuntu):
status: New → Fix Committed
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package mythtv - 0.22.0~zrc1-0ubuntu1

---------------
mythtv (0.22.0~zrc1-0ubuntu1) karmic; urgency=low

  * Upstream 0.22 rc1 snapshot.
    - Had to name the version funny because we've done builds with trunk in
      the name and trunk is greater than rc. (zrc1 rather than rc1)
  * Legacy init script needs different arguments. Only affects
    Jaunty & earlier builds. (LP: #450278)

 -- Mario Limonciello <email address hidden> Wed, 14 Oct 2009 21:18:18 -0500

Changed in mythtv (Ubuntu):
status: Fix Committed → Fix Released
MarcRandolph (mrand) on 2009-10-19
Changed in mythbuntu:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Duplicates of this bug

Other bug subscribers