Commit 5d8f62db authored by Łukasz Nowak's avatar Łukasz Nowak

Do not leave bogus logfile statement.

According to http://www.jimpryor.net/linux/crond.8 whenever dcron runs in
foreground it outputs logs only to stderr.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@45639 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 5bd8bc2d
......@@ -259,14 +259,13 @@ class Recipe(BaseSlapRecipe):
timestamps = self.createDataDirectory('cronstamps')
cron_d = os.path.join(self.etc_directory, 'cron.d')
crontabs = os.path.join(self.etc_directory, 'crontabs')
logfile = os.path.join(self.log_directory, 'cron.log')
self._createDirectory(cron_d)
self._createDirectory(crontabs)
wrapper = zc.buildout.easy_install.scripts([('crond',
__name__ + '.execute', 'execute')], self.ws, sys.executable,
self.wrapper_directory, arguments=[
self.options['dcrond_binary'].strip(), '-s', cron_d, '-c', crontabs,
'-t', timestamps, '-L', logfile, '-f', '-l', '6', '-M', '/bin/true']
'-t', timestamps, '-f', '-l', '6', '-M', '/bin/true']
)[0]
self.path_list.append(wrapper)
return cron_d
......
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