Re: [sheepdog] [PATCH v2 2/2] sheep: rotate log with SIGHUP

2013-10-22 Thread Hitoshi Mitake
At Tue, 22 Oct 2013 14:21:59 +0800, Liu Yuan wrote: > > On Sat, Oct 19, 2013 at 11:35:34PM +0900, Hitoshi Mitake wrote: > > From: Hitoshi Mitake > > > > Current sheep process rotates log when the log file reaches its > > maximum size (500MB). But it is not comfortable for periodical backup > > o

Re: [sheepdog] [PATCH v2 2/2] sheep: rotate log with SIGHUP

2013-10-21 Thread Liu Yuan
On Sat, Oct 19, 2013 at 11:35:34PM +0900, Hitoshi Mitake wrote: > From: Hitoshi Mitake > > Current sheep process rotates log when the log file reaches its > maximum size (500MB). But it is not comfortable for periodical backup > of log files. > > Rotating log with catching SIGHUP is a common beh

[sheepdog] [PATCH v2 2/2] sheep: rotate log with SIGHUP

2013-10-19 Thread Hitoshi Mitake
From: Hitoshi Mitake Current sheep process rotates log when the log file reaches its maximum size (500MB). But it is not comfortable for periodical backup of log files. Rotating log with catching SIGHUP is a common behavior of unix processes. This patch implements the behavior in sheep daemon.