From d38558beca9f36ce2a107e24b98b95682b829bb9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Nowak?= <luke@nexedi.com> Date: Fri, 22 Apr 2011 13:24:46 +0000 Subject: [PATCH] - register Zope logs to rotation git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@45649 20353a03-c40f-0410-a6d1-a30d3c3de9de --- slapos/recipe/erp5/src/slapos/recipe/erp5/__init__.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/slapos/recipe/erp5/src/slapos/recipe/erp5/__init__.py b/slapos/recipe/erp5/src/slapos/recipe/erp5/__init__.py index c73a8de416..7fb1318cdc 100644 --- a/slapos/recipe/erp5/src/slapos/recipe/erp5/__init__.py +++ b/slapos/recipe/erp5/src/slapos/recipe/erp5/__init__.py @@ -507,6 +507,9 @@ class Recipe(BaseSlapRecipe): '%s.pid' % name) zope_config['lock-filename'] = os.path.join(self.run_directory, '%s.lock' % name) + self.registerLogRotation(name, [zope_config['event_log'], + zope_config['z2_log']], self.killpidfromfile + ' ' + + zope_config['pid-filename'] + ' SIGUSR2') prefixed_products = [] for product in reversed(zope_config['products'].split()): -- 2.30.9