Icecast Streaming Media Server Forum Index Icecast Streaming Media Server
Icecast is a Xiph Foundation Project
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Graceful restart of Ices/Icecast w/out listeners' disconnect

 
Post new topic   Reply to topic    Icecast Streaming Media Server Forum Index -> Source Clients
View previous topic :: View next topic  
Author Message
zeiter



Joined: 17 Feb 2009
Posts: 4
Location: Nsk, Russia

PostPosted: Tue Feb 17, 2009 10:56 am    Post subject: Graceful restart of Ices/Icecast w/out listeners' disconnect Reply with quote

Hi!

Is there any method to reload Ices without kicking off the current listeners?

There's a need to play jingles every hour at 00 (sharp) minutes, so we put reload task in system crontab file. After the jingle Ices resumes with the playlist.

How to do that without disconnect?
_________________
Ranez.RU
Back to top
View user's profile Send private message
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Tue Feb 17, 2009 12:54 pm    Post subject: Reply with quote

The crontab sets up the playlist to play the jingle then signals the process to switch to the next track. then sleep for a few seconds then switch the original playlist back. (when the next track is selected the modification time is checked on the playlist, so use that)

karl.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
zeiter



Joined: 17 Feb 2009
Posts: 4
Location: Nsk, Russia

PostPosted: Wed Feb 18, 2009 4:19 am    Post subject: If Ices can not do that, what should we use on FreeBSD box? Reply with quote

Thanks for your reply.

That's not a problem to manage the playlist, it's stored in MySQL DB.
We use perl script to select tracks from the base.

The problem is to start a jingle at 00 minutes sharp, because the length of the track playing before it can differ. So it doesn't mean, that the song will end at 00 minutes, it can play till 01-05 minutes. So we need to stop streaming and resume it with jingle. It's very important to play jingle at exactly time.

In other words, we need stop plaing from one playlist at any time and resume it with another one, without kicking off the listeners.

If Ices can not do that, what should we use on FreeBSD box?
_________________
Ranez.RU
Back to top
View user's profile Send private message
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Wed Feb 18, 2009 4:48 am    Post subject: Reply with quote

check the documentation for ices to see if there is a signal you cans send to trigger a next track, that next track could then be a jingle.

karl.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
zeiter



Joined: 17 Feb 2009
Posts: 4
Location: Nsk, Russia

PostPosted: Wed Feb 18, 2009 9:43 am    Post subject: Reply with quote

Thanks, Karl.

Will you share with a link to the documentation for Ices0?
_________________
Ranez.RU
Back to top
View user's profile Send private message
zeiter



Joined: 17 Feb 2009
Posts: 4
Location: Nsk, Russia

PostPosted: Wed Feb 18, 2009 9:48 am    Post subject: Found in man ices0 Reply with quote

Sorry...

Found in man ices0:

Code:
SIGNAL HANDLING
       Ices handles the following signals specially:

       SIGINT Causes ices to perform a clean shutdown.

       SIGHUP Causes ices to close and reopen the log file and  the  playlist.
              It  will  also  reload and restart the playlist script if you're
              using one.

       SIGUSR1
              Causes  ices  to  skip  to  the  next  track  in  the   playlist
              immediately.


Thanks, Karl for your help!
_________________
Ranez.RU
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Icecast Streaming Media Server Forum Index -> Source Clients All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2002 phpBB Group
subRebel style by ktauber