Commit a1261a35 authored by Łukasz Nowak's avatar Łukasz Nowak

- register rotation of apache log files


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@45654 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 3ea349ea
...@@ -564,6 +564,9 @@ class Recipe(BaseSlapRecipe): ...@@ -564,6 +564,9 @@ class Recipe(BaseSlapRecipe):
prefix + '-error.log') prefix + '-error.log')
apache_conf['access_log'] = os.path.join(self.log_directory, apache_conf['access_log'] = os.path.join(self.log_directory,
prefix + '-access.log') prefix + '-access.log')
self.registerLogRotation(prefix, [apache_conf['error_log'],
apache_conf['access_log']], self.killpidfromfile + ' ' +
apache_conf['pid_file'] + ' SIGUSR1')
return apache_conf return apache_conf
def _writeApacheConfiguration(self, prefix, apache_conf, backend): def _writeApacheConfiguration(self, prefix, apache_conf, backend):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment