Re: [CentOS] Log rolling with a daemon

2013-12-22 Thread Larry Martell
On Sat, Dec 21, 2013 at 9:46 PM, Cliff Pratt wrote: > John's suggestion is still pertinent. You'll need a SIGHUP handler in your > script. Logrotate could send the SIGHUP in a postrotate 'script'. Thanks! > On Sun, Dec 22, 2013 at 3:15 PM, Larry Martell wrote: > >> On Sat, Dec 21, 2013 at 8:52

Re: [CentOS] Log rolling with a daemon

2013-12-21 Thread Cliff Pratt
John's suggestion is still pertinent. You'll need a SIGHUP handler in your script. Logrotate could send the SIGHUP in a postrotate 'script'. Cheers, Cliff On Sun, Dec 22, 2013 at 3:15 PM, Larry Martell wrote: > On Sat, Dec 21, 2013 at 8:52 PM, John R Pierce > wrote: > > On 12/21/2013 4:56 PM,

Re: [CentOS] Log rolling with a daemon

2013-12-21 Thread John R Pierce
On 12/21/2013 6:15 PM, Larry Martell wrote: > This is not using syslog. If you look at the daemonizing script I gave > the link to, you pass in the log files for stdout and stderr, and it > does some double fork magic and then associates the given files with > them i rarely read links on emails, a

Re: [CentOS] Log rolling with a daemon

2013-12-21 Thread Larry Martell
On Sat, Dec 21, 2013 at 8:52 PM, John R Pierce wrote: > On 12/21/2013 4:56 PM, Larry Martell wrote: >> I'm looking for advice or suggestions for rolling log files with a >> daemon. I have a python script that I daemonized with >> http://www.jejik.com/articles/2007/02/a_simple_unix_linux_daemon_in_

Re: [CentOS] Log rolling with a daemon

2013-12-21 Thread John R Pierce
On 12/21/2013 4:56 PM, Larry Martell wrote: > I'm looking for advice or suggestions for rolling log files with a > daemon. I have a python script that I daemonized with > http://www.jejik.com/articles/2007/02/a_simple_unix_linux_daemon_in_python/. > Before I daemonized it it was run from a bash scr

[CentOS] Log rolling with a daemon

2013-12-21 Thread Larry Martell
I'm looking for advice or suggestions for rolling log files with a daemon. I have a python script that I daemonized with http://www.jejik.com/articles/2007/02/a_simple_unix_linux_daemon_in_python/. Before I daemonized it it was run from a bash script that invoked the underlying python script. It ra