Inconsistent use of defaults

Bug #1653200 reported by Gabriel Burca on 2016-12-30
This bug affects 2 people
Affects Status Importance Assigned to Milestone
mediatomb (Ubuntu)

Bug Description

Ubuntu 16.04.1 LTS
MediaTomb version: 0.12.1-47-g7ab7616-1ubuntu2

The contents of /etc/default/mediatomb are used by 3 start-up scripts, but the usage is inconsistent.

/etc/init/mediatomb.conf expects variables NOT to be prefixed with "MT_" (ex: INTERFACE vs MT_INTERFACE).

/etc/init.d/mediatomb expects "MT_" prefixed variables, except for the OPTIONS variable, and ignores the MT_PORT variable.

/lib/systemd/system/mediatomb.service expects "MT_" prefixed variables, ignores the OPTIONS variable, and expect the port to be in the MT_PORT variable.

Since the interface is also specified in the /etc/mediatomb/config.xml file, perhaps the MT_INTERFACE variable should be removed to reduce confusion.

I'm not sure why all 3 start-up scripts are installed, but at least they should behave consistently if they all use the same defaults file.

Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in mediatomb (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers