View Single Post
Old 04-29-2012, 09:56 AM   #3
G.S. Rashkovich
Junior Member
G.S. Rashkovich began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Apr 2012
Device: smartphone on MTK6235 chipset
Once more, the same question...

Thanks for a quick answer.
But..."echo > log.txt" :-)...Was it a joke?

Once more, Calibre access server doesn't use new logs after rotation until I stop/start it. The same one is with "echo...", of course, plus delete old file.

I asked, how to ROTATE logs. In other words, how to switch to new log file, not how to truncate/delete it.

And the main part of question - how to do it WITHOUT SERVER RESTART.

I didn't mean just delete/truncate log with "echo", "rm", "truncate" etc. It's easy but out of use.
I need logs and just want to rotate them like any other server does. Maybe, with sending signal 15 or signal SIGUSR* or something like it.

Isit possible or should it be possible in future?
G.S. Rashkovich is offline   Reply With Quote