Old 11th June 2003, 15:55   #1
Enrico Ng
Junior Member
 
Join Date: Jun 2003
Posts: 24
sc_trans logfile

I saw in the readme file that it suggested that I can use the HUP signal to close and reopen the log file to help with logfile rotation.
How would I do this?
Send the signal then rename the log file?

Is there a way to make to only keep the last 24 hours or last week. I want to avoid abrupt intturptions in the log file.
Enrico Ng is offline   Reply With Quote
Old 11th June 2003, 17:54   #2
matt2kjones
Major Dude
 
Join Date: May 2002
Location: UK
Posts: 929
Send a message via ICQ to matt2kjones Send a message via AIM to matt2kjones
open the log file every week, delete what u dont want, then save

then the sc_trans_linux script will carry on logging as normal

why do u want to cut it down anyway, log files remain small with thousands of lines


TDD House & Trance Radio:
[ 64k Stream | Visit Site ]
matt2kjones is offline   Reply With Quote
Old 11th June 2003, 17:56   #3
Enrico Ng
Junior Member
 
Join Date: Jun 2003
Posts: 24
I plan to write a front end that will need to read the log file. I figure a smaller file will cut down on the time it takes for the script to run.
Also, one time I accidentally deleted a mp3 that was about to play and sc_trans got stuck and the log file ballooned up to 200mb.
Enrico Ng is offline   Reply With Quote
Old 11th June 2003, 18:01   #4
matt2kjones
Major Dude
 
Join Date: May 2002
Location: UK
Posts: 929
Send a message via ICQ to matt2kjones Send a message via AIM to matt2kjones
57MB logfile takes approx 1.5 secs to process on my server

just have the front end u make fix up the logfile


TDD House & Trance Radio:
[ 64k Stream | Visit Site ]
matt2kjones is offline   Reply With Quote
Old 11th June 2003, 18:01   #5
DJHotIce
Forum Loser
(Forum King)
 
DJHotIce's Avatar
 
Join Date: Jan 2003
Location: That place I can't remember the name.
Posts: 4,617
Send a message via AIM to DJHotIce Send a message via Yahoo to DJHotIce
ouch thats not good!

-DJHotIce
Bounce Multimedia - Professional Web Design
DJHotIce is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Shoutcast > Shoutcast Technical Support

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump