in case you move the log file of a running daemon as kannel without SIGHUP , the output will continue to go into the moved file even its compressed or deleted. same will happen if you move or compress apache log when apache server is running, for example
so the safest for me is just copy the log file and truncate the original right after the copy process is finished. Well, it is obvious the user should have write permissions in a view to truncate the log file ... The other approach should be to patch the kannel to do log rotation itself :) -----Original Message----- From: Rolandow [EMAIL PROTECTED] Sent: 10 ???????? 2007 ?. To: seik Subject:Logrotate.d > Hi Seik, > I assume I have to run this in my crontab? What I don't understand is why > Kannel isn't writing to the logs anymore. > Is it because it is empty? Also, under which user should I do this? > I'd appreciate a little more explenation, so I can understand what's > happening. > Thanks! > Kind regards, > Roland. > seik wrote: > /usr/bin/cp log.file. log.file.$(/usr/bin/date +%Y-%m-%d.%H.%M.%S); > /usr/bin/echo $(/usr/bin/date) > log.file > -----Original Message----- > From: Rolandow [EMAIL PROTECTED] > Sent: 10 ???????? 2007 ?. > To: seik > Subject:Logrotate.d > > Hi All, > > > Could somebody post his (working) logrotate.d script? I am rotating my > logfiles, but after the rotation, Kannel > doesn't seem to write them anymore. Currently I let logrotate create the new > script after logrotation. How can I logrotate the logs without interrupting > Kannel? > > > Thanks! > >
