Never compress a pid file under $site_path/logs

Don't compress gerrit.pid after 24 hours, it makes it impossible
to shutdown the currently running daemon.

Change-Id: Iebb4d2fc039c92b226b6268a91a8bdedf54b1e18
Signed-off-by: Shawn O. Pearce <sop@google.com>
This commit is contained in:
Shawn O. Pearce 2009-12-19 14:30:17 -08:00
parent 1be39064f6
commit 5533957557

View File

@ -96,7 +96,8 @@ public class LogFileCompressor implements Runnable {
private boolean isLive(final File entry) {
final String name = entry.getName();
return ErrorLogFile.LOG_NAME.equals(name);
return ErrorLogFile.LOG_NAME.equals(name) //
|| name.endsWith(".pid");
}
private boolean isCompressed(final File entry) {