diff --git a/launch.py b/launch.py index 107b11885a7acca1f637caf831f9aa5cf99d8b8c..5b767dd6f9290d80435893418247780aefc20979 100755 --- a/launch.py +++ b/launch.py @@ -105,10 +105,10 @@ def write_crontab(): cwd = os.getcwd() 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 - # nr of cpu's is set to 1, but will over written by config file + # when using the crontab option, cpu parameters are read from the config + # file if it exists rpl = (cwd, python, launch) - crontab = '*/5 * * * * cd "%s"; %s %s --crontab -n 1;\n' % rpl + crontab = '*/5 * * * * cd "%s"; %s %s --crontab ;\n' % rpl f = open(fpath, 'w') f.write(crontab) f.flush()