Skip to content
Snippets Groups Projects
Commit 5903a9ea authored by David Verelst's avatar David Verelst
Browse files

launch.py crontab mode, more fixes

parent 414b8d09
No related branches found
No related tags found
No related merge requests found
......@@ -106,7 +106,9 @@ def write_crontab():
fpath = os.path.join(cwd, 'launch_crontab.sh')
# TODO: parse other relevant arguments as well: --re
# but not the free cpu's etc, they are read from the config file
crontab = '*/5 * * * * cd "%s"; %s %s --crontab' % (cwd, python, launch)
# nr of cpu's is set to 1, but will over written by config file
rpl = (cwd, python, launch)
crontab = '*/5 * * * * cd "%s"; %s %s --crontab -n 1;\n' % rpl
f = open(fpath, 'w')
f.write(crontab)
f.flush()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment