OK, took a crash course in systemctl. Got the service properly enabled. However, got one odd error when I started it. Mar 26 18:06:10 {my-FQDN} icecast[839]: ERROR: You should not run icecast2 as root Mar 26 18:06:10 {my-FQDN} icecast[839]: Use the changeowner directive in the config file The XML shows: <changeowner> <user>nobody</user> <group>nogroup</group> </changeowner>
Are you logged in as another user account other than root? If not, that's the simplest way I would do it. Jonnyboy! Iphones rock!> On Mar 26, 2015, at 11:05, Steve Matzura <sm at noisynotes.com> wrote: > > OK, took a crash course in systemctl. Got the service properly > enabled. However, got one odd error when I started it. > > Mar 26 18:06:10 {my-FQDN} icecast[839]: ERROR: You should not run > icecast2 as root > Mar 26 18:06:10 {my-FQDN} icecast[839]: Use the changeowner directive > in the config file > > The XML shows: > > <changeowner> > <user>nobody</user> > <group>nogroup</group> > </changeowner> > _______________________________________________ > Icecast mailing list > Icecast at xiph.org > http://lists.xiph.org/mailman/listinfo/icecast
Can do, but that doesn't solve the problem of why systemctl doesn't handle this properly, and what to do in the case of an unattended and unintended reboot where the thing has to start on its own with no intervention. On Thu, 26 Mar 2015 13:25:32 -0700, you wrote:>Are you logged in as another user account other than root? If not, that's the simplest way I would do it. > >Jonnyboy! Iphones rock! > >> On Mar 26, 2015, at 11:05, Steve Matzura <sm at noisynotes.com> wrote: >> >> OK, took a crash course in systemctl. Got the service properly >> enabled. However, got one odd error when I started it. >> >> Mar 26 18:06:10 {my-FQDN} icecast[839]: ERROR: You should not run >> icecast2 as root >> Mar 26 18:06:10 {my-FQDN} icecast[839]: Use the changeowner directive >> in the config file >> >> The XML shows: >> >> <changeowner> >> <user>nobody</user> >> <group>nogroup</group> >> </changeowner> >> _______________________________________________ >> Icecast mailing list >> Icecast at xiph.org >> http://lists.xiph.org/mailman/listinfo/icecast >_______________________________________________ >Icecast mailing list >Icecast at xiph.org >http://lists.xiph.org/mailman/listinfo/icecast
On 03/26/2015 06:05 PM, Steve Matzura wrote:> OK, took a crash course in systemctl. Got the service properly > enabled. However, got one odd error when I started it. > > Mar 26 18:06:10 {my-FQDN} icecast[839]: ERROR: You should not run > icecast2 as root > Mar 26 18:06:10 {my-FQDN} icecast[839]: Use the changeowner directive > in the config file > > The XML shows: > > <changeowner> > <user>nobody</user> > <group>nogroup</group> > </changeowner>Check which config file it's trying to use, might be a different copy? On Fedora the default config file is /etc/icecast.xml IIRC. TBR
Well, here's the whole output from systemctl. # systemctl status icecast -l icecast.service - Icecast Network Audio Streaming Server Loaded: loaded (/usr/lib/systemd/system/icecast.service; enabled) Active: failed (Result: exit-code) since Thu 2015-03-26 18:06:10 CET; 38min ago Process: 839 ExecStart=/usr/bin/icecast -c /etc/icecast.xml (code=exited, status=1/FAILURE) Main PID: 839 (code=exited, status=1/FAILURE) CGroup: /system.slice/icecast.service Mar 26 18:06:09 {my-FQDN} systemd[1]: Starting Icecast Network Audio Streaming Server... Mar 26 18:06:09 {my-FQDN} systemd[1]: Started Icecast Network Audio Streaming Server. Mar 26 18:06:10 {my-FQDN} icecast[839]: [2015-03-26 18:06:09] WARN CONFIG/_parse_root Warning, <location> not configured, using default value "Earth". Mar 26 18:06:10 {my-FQDN} icecast[839]: [2015-03-26 18:06:09] WARN CONFIG/_parse_root Warning, <admin> contact not configured, using default value "icemaster at localhost". Mar 26 18:06:10 {my-FQDN} icecast[839]: ERROR: You should not run icecast2 as root Mar 26 18:06:10 {my-FQDN} icecast[839]: Use the changeowner directive in the config file Mar 26 18:06:10 {my-FQDN} systemd[1]: icecast.service: main process exited, code=exited, status=1/FAILURE Mar 26 18:06:10 {my-FQDN} systemd[1]: Unit icecast.service entered failed state. I have since defined location and contact, but they were only warnings anyway. The XML definitely contains a changeowner section with user defined as nobody and group defined as nogroup. On Thu, 26 Mar 2015 20:35:25 +0000, you wrote:>On 03/26/2015 06:05 PM, Steve Matzura wrote: >> OK, took a crash course in systemctl. Got the service properly >> enabled. However, got one odd error when I started it. >> >> Mar 26 18:06:10 {my-FQDN} icecast[839]: ERROR: You should not run >> icecast2 as root >> Mar 26 18:06:10 {my-FQDN} icecast[839]: Use the changeowner directive >> in the config file >> >> The XML shows: >> >> <changeowner> >> <user>nobody</user> >> <group>nogroup</group> >> </changeowner> > >Check which config file it's trying to use, might be a different copy? >On Fedora the default config file is /etc/icecast.xml IIRC. > >TBR >_______________________________________________ >Icecast mailing list >Icecast at xiph.org >http://lists.xiph.org/mailman/listinfo/icecast