init script fails if NO_START="yes"

Bug #277393 reported by Brian Murray
2
Affects Status Importance Assigned to Milestone
mediatomb (Ubuntu)
New
Low
Unassigned

Bug Description

Binary package hint: mediatomb

If NO_START="yes" is set in /etc/default/mediatomb, then the init script for mediatomb exits and only returns a message if the command is 'start'. However, it is possible that one might want to stop mediatomb after setting NO_START="yes" and one can't.

I noticed this on Hardy Heron using mediatomb package version:

0.11.0-1ubuntu1

Changed in mediatomb:
importance: Undecided → Low
Revision history for this message
Bertrand Croq (bcroq) wrote :

Now that mediatomb uses upstart, the problem is that NO_START is not used anymore... I had to change the /etc/init/mediatomb file so the NO_START value is checked just after sourcing the /etc/default/mediatomb file:

...
script
        [ -r $DEFAULT ] && . $DEFAULT
        [ $NO_START = yes ] && exit 0
...

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers