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
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.
This is fixed in bug #264235.
(In reply to comment #2) > This is fixed in bug #264235. > in tree, thanks.
(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?
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.
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.
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.