Re: Logrotate.d

2007-10-10 Thread seik
/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!




Re: Logrotate.d

2007-10-10 Thread Rolandow

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!




  




RE: Logrotate.d

2007-10-10 Thread Peter Lum
Hi
 
I am interested in doing this as well.
Is there a step-by-step guide on this?
Is it using crontab?
What is killall-HUP?
 
Thanks!
Peter

  _  

From: Rolandow [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, October 10, 2007 5:53 PM
To: users@kannel.org
Subject: Re: Logrotate.d


I already found it... it was the killall -HUP that I didn't do, that's
because it didn't work. Thanks!

Rolandow wrote: 

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!







  





Re: Logrotate.d

2007-10-10 Thread Rolandow
I already found it... it was the killall -HUP that I didn't do, that's 
because it didn't work. Thanks!


Rolandow wrote:

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!




  






[Fwd: Re: Logrotate.d]

2007-10-10 Thread Djiby SY


---BeginMessage---

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!


---End Message---


Re: Logrotate.d

2007-10-10 Thread Djiby SY

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!




RE: Logrotate.d

2007-10-10 Thread info.ubichip
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: users@kannel.org
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! http://www.avast.com : 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.




Re: Logrotate.d

2007-10-10 Thread Mihai Zsigmond
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: users@kannel.org 
  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: users@kannel.org
  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.