From 5903a9ead520e4ae23c254ddf603a04137d79700 Mon Sep 17 00:00:00 2001
From: David Robert Verelst <dave@dtu.dk>
Date: Thu, 4 Aug 2016 22:03:51 +0200
Subject: [PATCH] launch.py crontab mode, more fixes

---
 launch.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/launch.py b/launch.py
index 371c703..7ffe590 100755
--- a/launch.py
+++ b/launch.py
@@ -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()
-- 
GitLab