When emerging icecast icecast gets installed but the default config file points to non existing log file. Reproducible: Always Steps to Reproduce: 1.emerge icecast 2.start icecast Actual Results: icecast says it started, but it did not. (because it is unable to write to the log file) Expected Results: icecast should have started or the startup script should have said it failed starting. It would make more sense to use /var/log/icecast for icecast logs? /var/lib/log does not even exist on my system. Also, on a side note, default config file has uid/gid degradation disabled, where icecast starts with an error message that you cannot run it as root. However the default config file is only used by root anyhow? (/etc/icecast2/icecast.xml)
AFAIK you're supposed to edit the config file before being able to sucessfully run icecast2 from a fresh install. Should we make this more clearer?
*** Bug 84002 has been marked as a duplicate of this bug. ***
It does not matter wether you should edit the config file or not the default path should be sane : ). I know there are a lot of people who won't properly read/edit a file. On the other hand should users have to worry about config files as little as possible. E.g. have sane default values so you have to change as little as possible. Thats what I think anyway.
I just fiddled around with icecast, finally managing to get it going - IMHO, the ebuild needs to be revised to manage the icecast user/group automatically, and modify the config file to something sane OR (much easier) print out a list of instructions necessary to get this working more or less out of the box. (einfo style) If I have time, I'll get on this, after I figure out why anything that isn't an .xsl file 404s in the web administration interface.
If you could provide patches, this will have a higher chance of getting solved as most of us are content the way it is and have more pressing issues. thanks.
*** Bug 95666 has been marked as a duplicate of this bug. ***
*** Bug 95662 has been marked as a duplicate of this bug. ***
Created attachment 74443 [details, diff] Patch to convert icecast-2.2.0.ebuild to icecast-2.2.0-r1.ebuild Suggested changes to: - Create logs in /var/log/icecast - Run as ice:ice (including modifying icecast.xml) - Add theora flag to ensure required version of theora libs are installed
Created attachment 74444 [details, diff] The patch for icecast.xml for user ice:ice
Created attachment 74474 [details, diff] Patch to convert icecast-2.2.0.ebuild to icecast-2.2.0-r1.ebuild Use eutils enewuser and enewgroup
I've installed icecast-2.3.1 and /var/log/icecast has wrong owner (root). It must be "icecast".
Created attachment 87893 [details, diff] Patch to convert icecast-2.2.0.ebuild to icecast-2.2.0-r1.ebuild Create pkg_preinst() for enewgroup and enewuser functions.
I'm going to vote wontfix here, since the defaults are upstreams.