Displaying 3 results from an estimated 3 matches for "log_reopen".
Did you mean:
log_open
2003 Jul 01
2
Icecast2 log and yp behaviour
Some of you may have seen my post to the vorbis list regarding the new
Virgin Radio streams using Ogg Vorbis, ices2 and icecast2.
Anyway, I have a couple of techy enquiries about the icecast2 server.
Firstly, I want to rotate the icecast2 logs at midnight (i.e. create a new
access.log file for each day). Normally I would expect to be able to move
the existing log file and then send a killall
2005 Feb 20
2
ices2 not re-connecting on live stream
On Sun, 2005-02-20 at 12:15, Fr?d?ric Bri?re wrote:
> I've been running ices2 like this 24/7 for months now, only restarting
> it once a week for log rotation. Never had a problem since.
setting <logsize> will cause an automatic log rotation when a certain
file size has been reached. It renames <logfile> to <logfile>.1 then
opens a new file <logfile>
karl.
2005 Feb 20
0
ices2 not re-connecting on live stream
...nsures that the new
logfile is created right away.)
--- ices2-2.0.0-kh59.orig/src/signals.c
+++ ices2-2.0.0-kh59/src/signals.c
@@ -51,9 +51,11 @@
void signal_hup_handler(int signum __attribute__((unused)))
{
LOG_INFO0("Flushing logs");
- log_flush(ices_config->log_id);
+ log_reopen(ices_config->log_id);
+ LOG_INFO0("Reloading playlist");
ices_config->next_track = 1;
+
signal(SIGHUP, signal_hup_handler);
}
@@ -67,6 +69,7 @@
void signals_setup(void)
{
+ signal(SIGHUP, signal_hup_handler);
signal(SIGINT, signal_int_handler);
signal(SIGTE...