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

Use directory to separate filestorages.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@45780 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent c6965448
...@@ -506,6 +506,8 @@ class Recipe(BaseSlapRecipe): ...@@ -506,6 +506,8 @@ class Recipe(BaseSlapRecipe):
zeo_number = 0 zeo_number = 0
for zeo_server in sorted(self._zeo_storage_dict.iterkeys()): for zeo_server in sorted(self._zeo_storage_dict.iterkeys()):
zeo_number += 1 zeo_number += 1
server_dir = os.path.join(zodb_dir, str(zeo_number))
self._createDirectory(server_dir)
zeo_event_log = os.path.join(self.log_directory, 'zeo-%s.log'% zeo_number) zeo_event_log = os.path.join(self.log_directory, 'zeo-%s.log'% zeo_number)
zeo_pid = os.path.join(self.run_directory, 'zeo-%s.pid'% zeo_number) zeo_pid = os.path.join(self.run_directory, 'zeo-%s.pid'% zeo_number)
self.registerLogRotation('zeo', [zeo_event_log], self.registerLogRotation('zeo', [zeo_event_log],
...@@ -520,8 +522,7 @@ class Recipe(BaseSlapRecipe): ...@@ -520,8 +522,7 @@ class Recipe(BaseSlapRecipe):
storage_definition_list = [] storage_definition_list = []
for storage_name in sorted(self._zeo_storage_dict[zeo_server]): for storage_name in sorted(self._zeo_storage_dict[zeo_server]):
storage_number += 1 storage_number += 1
path = os.path.join(zodb_dir, 'zodb_%s_%s.fs' % (zeo_number, path = os.path.join(server_dir, 'zodb_%s.fs' % storage_number)
storage_number))
storage_definition_list.append("""<filestorage %(storage_name)s> storage_definition_list.append("""<filestorage %(storage_name)s>
path %(path)s path %(path)s
</filestorage>"""% dict(storage_name=storage_name, path=path)) </filestorage>"""% dict(storage_name=storage_name, path=path))
......
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