Hi, guys,

Here is the principle of a log rotation method wich can rotate the log without  
<< holding >> the kannel, which may be convenient.

I have written a perl script wich copies the current log file to some other 
name and then copies an empty file to the current log file. Thus, there is no 
need to hold or pause the activity of Kannel.

This works for Kannel any version and Fedora Core 3. Untested in other 
environments.

Hope it helps.
Regards,
Mihai Zsigmond

  ----- Original Message ----- 
  From: info.ubichip 
  To: 'Djiby SY' ; 'Rolandow' 
  Cc: [email protected] 
  Sent: Wednesday, October 10, 2007 9:26 PM
  Subject: RE: Logrotate.d


  Whatever your log rotate size is, you will have to « hold » kannel in order 
to change the destination of the log. I am making a log rotate each day for 
convenient archive, I suggest you not to have to much big log file in order not 
to slow down your system.

   

  Hope that help

   

  Regards

   

   


------------------------------------------------------------------------------

  From: Djiby SY [mailto:[EMAIL PROTECTED] 
  Sent: mercredi 10 octobre 2007 02:21
  To: Rolandow
  Cc: [email protected]
  Subject: Re: Logrotate.d

   

  Hi Rolandow,

  Here is my logrotate.d script for kannel log files

   /your_path/kannel.log /your_path/sqlbox.log /your_path/smsbox.log {
         daily
         missingok
         rotate 100
         size=50M
         compress
         delaycompress
         olddir /your_path/oldlogs
         notifempty
         create 640 root root
         sharedscripts
         postrotate
               killall -HUP bearerbox sqlbox smsbox || true > /dev/null 2> 
/dev/null
         endscript
  }

  Hope it helps.

  Regards
  --
  Djiby


  Rolandow a écrit : 

  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!

   




----------------------------------------------------------------------------

    Antivirus avast!: message Sortant sain. 

    Base de donnees virale (VPS) : 000780-1, 10/10/2007
    Analyse le : 10/10/2007 11:26:10
    avast! - copyright (c) 1988-2007 ALWIL Software.
     

Reply via email to