diff options
Diffstat (limited to 'steuermann/run_cron.py')
-rw-r--r-- | steuermann/run_cron.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/steuermann/run_cron.py b/steuermann/run_cron.py index f2a01b3..edb0451 100644 --- a/steuermann/run_cron.py +++ b/steuermann/run_cron.py @@ -52,12 +52,16 @@ def main() : node.table = None node.cmd = None node.script = script + node.resources = { } if host == 'localhost' : node.script_type = 'l' # local else : node.script_type = 'r' # remote - runner = steuermann.run.runner( nodes = { node.name : node } ) + hosts_ini = os.path.join(os.path.dirname(__file__), 'hosts.ini') + + runner = steuermann.run.runner( nodes = { node.name : node }, hosts_ini = hosts_ini ) + logname = logfile_name = steuermann.config.logdir + '/cron/' + logfile st = runner.run( node=node, run_name='', logfile_name = logname ) |