Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 274627 - net-misc/mediatomb: --interface should not be set by init script
Summary: net-misc/mediatomb: --interface should not be set by init script
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Jeremy Olexa (darkside) (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-06-18 17:16 UTC by sfullenwider
Modified: 2010-08-20 03:09 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
interface patch (interface.patch,955 bytes, text/plain)
2009-11-17 13:22 UTC, BT
Details

Note You need to log in before you can comment on or make changes to this bug.
Description sfullenwider 2009-06-18 17:16:32 UTC
by setting --interface in the init script I cannot set the IP I want mediatomb to run on.  Some interfaces have multiple IPs.  

2009-06-18 13:01:37   ERROR: You can not specify interface and IP at the same time!

Removing the --interface part from the init script solved the issue.


Reproducible: Always
Comment 1 BT 2009-11-17 13:22:23 UTC
Created attachment 210511 [details]
interface patch

This patch removes the interface option from the init script and conf.d file. This will result in MediaTomb binding to the first IP of the first available interface. If a user requires a specific interface or IP to bind to, they should set it via the MEDIATOMB_OPTIONS variable in /etc/conf.d/mediatomb.
Comment 2 BT 2010-03-29 22:20:38 UTC
This is fixed in bug #264235.
Comment 3 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2010-03-29 22:34:20 UTC
(In reply to comment #2)
> This is fixed in bug #264235.
> 

in tree, thanks.
Comment 4 Andrew Frink 2010-08-19 01:31:32 UTC
(In reply to comment #3)
> (In reply to comment #2)
> > This is fixed in bug #264235.
> > 
> 
> in tree, thanks.
> 

This patch broke my setup, I have a dynamic IP, and want to bind to a specific interface. 'MEDIATOMB_INTERFACE=""' was left around in my /etc/conf.d/mediatomb, and no updated config file was provided, nor was there a elog/ewarn message. The only notice I was given was the change to the init script when I ran dispatch-conf. I missed that change and spent a bit of time tracking down the source of the problem.

cat /etc/conf.d/mediatomb | sed 's/^# Other.*$/&\n# Add "--interface ${MEDIATOMB_INTERFACE}" to bind to a named interface./' 

The above would add a line with a note, just above MEDIATOMB_OPTIONS="" or could we get a elog/ewarn message added for -r2?
Comment 5 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2010-08-19 02:00:06 UTC
I can see that. I added your comment there but I am not going to add a new revision so users recompile just for a comment. Sorry for the trouble and thanks for your feedback.
Comment 6 BT 2010-08-20 02:23:36 UTC
What about users of new MediaTomb installs? Instructing those users to add '--interface ${MEDIATOMB_INTERFACE}"' to 'MEDIATOMB_OPTIONS' won't do anything since 'MEDIATOMB_INTERFACE' is not defined or used anywhere.

I do agree that there should be some comment instructing users about how to bind to a specific interface or ip. Maybe the following would be more appropriate.

Add "--interface <interface>" or "--ip <address>" to bind to a specific named interface or ip address.
Comment 7 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2010-08-20 03:09:41 UTC
I was thinking that they could figure that out since $MEDIATOMB_INTERFACE isn't defined in the file...It's good enough for now, in my opinion. We can re-do something during the next version bump.