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?
|