Commit 4df75b37 authored by Łukasz Nowak's avatar Łukasz Nowak

Manage status_file location.

parent 1d828aeb
...@@ -566,6 +566,7 @@ class Recipe(BaseSlapRecipe): ...@@ -566,6 +566,7 @@ class Recipe(BaseSlapRecipe):
known_tid_storage_identifier_dict[k] = (v[0], destination, v[1]) known_tid_storage_identifier_dict[k] = (v[0], destination, v[1])
logfile = os.path.join(self.log_directory, 'tidstorage.log') logfile = os.path.join(self.log_directory, 'tidstorage.log')
pidfile = os.path.join(self.run_directory, 'tidstorage.pid') pidfile = os.path.join(self.run_directory, 'tidstorage.pid')
statusfile = os.path.join(self.log_directory, 'tidstorage.tid')
timestamp_file_path = os.path.join(self.log_directory, timestamp_file_path = os.path.join(self.log_directory,
'repozo_tidstorage_timestamp.log') 'repozo_tidstorage_timestamp.log')
# shared configuration file # shared configuration file
...@@ -579,7 +580,8 @@ class Recipe(BaseSlapRecipe): ...@@ -579,7 +580,8 @@ class Recipe(BaseSlapRecipe):
port=port, port=port,
timestamp_file_path=timestamp_file_path, timestamp_file_path=timestamp_file_path,
logfile=logfile, logfile=logfile,
pidfile=pidfile pidfile=pidfile,
statusfile=statusfile
))) )))
# TID server # TID server
tidstorage_server = zc.buildout.easy_install.scripts([('tidstoraged', tidstorage_server = zc.buildout.easy_install.scripts([('tidstoraged',
......
...@@ -6,10 +6,10 @@ port = %(port)s ...@@ -6,10 +6,10 @@ port = %(port)s
#fork = False #fork = False
#setuid = None #setuid = None
#setgid = None #setgid = None
#status_file = 'tidstorage.tid'
burst_period = 30 burst_period = 30
full_dump_period = 300 full_dump_period = 300
timestamp_file_path = '%(timestamp_file_path)s' timestamp_file_path = '%(timestamp_file_path)s'
logfile_name = '%(logfile)s' logfile_name = '%(logfile)s'
pidfile_name = '%(pidfile)s' pidfile_name = '%(pidfile)s'
status_file = '%(statusfile)s'
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