LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 06-12-2017, 07:56 AM   #1
Usalabs
Member
 
Registered: Jan 2004
Distribution: OpenSUSE 42.1 Server
Posts: 158

Rep: Reputation: 15
Attempting to run icecast as a service.


OK, here's the biggest and weirdest problem I've had,,,,my server is running OpenSuSe 42.1 in CLI mode with local SSH access only, I have successfully installed and configured icecast and the icecast.xml file, it works perfectly when run from a bash file, using:-

Code:
#! /bin/bash

sudo icecast -b -c /etc/icecast.xml
and SAM broadcast can connect and stream to icecast with no problems and I can even access the icecast web interface, but the problem starts when I try to run icecast as a service at boot-time, using these commands:-

Code:
systemctl enable icecast
systemctl start icecast
now, when I use systemctl status icecast -l I get the messages that icecast is running perfectly ('Running.....' shows in green letters), running SAM broadcaster, I see the encoder showing as 'Encoding......', but as soon as I start streaming through the encoder, it immediately disconnects with an error, and the icecast error.log only shows :-

Code:
[2017-06-12  05:23:44] INFO sighandler/_sig_die Caught signal 15, shutting down...
[2017-06-12  05:23:44] INFO main/main Shutting down
[2017-06-12  05:23:44] INFO sighandler/_sig_die Caught signal 15, shutting down...
[2017-06-12  05:23:44] INFO fserve/fserve_shutdown file serving stopped
But, if I don't run icecast as a service, and manually start it using the bash script, SAM broadcaster encoder works 100% with no errors.

I had to change just 1 line in the icecast.xml file to enable the pid file at /var/run/icecast.pid which wasn't used when run as a bash script, but *is* used when running as a service.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Weird error message while attempting to run Eclipse v3gard Slackware 8 05-24-2013 10:40 PM
Flightgear: fgrun gives permission denied when attempting to run dickgregory Linux - Games 1 07-10-2012 05:11 PM
[SOLVED] Cron run fails at random points, throws: Attempting to re-run cron while.... Nighteyes Linux - Newbie 2 06-22-2012 05:08 AM
Attempting to run fsck.reiserfs on software raid - no success twac Linux - Software 0 08-31-2008 01:09 PM
Attempting to run mplayer returns with libdv.so.4 error Matt.Ramos Linux - Newbie 6 07-19-2005 06:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 07:57 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration