From 7ada3c77d0385f127e1d07eeb11a4db07a4764f1 Mon Sep 17 00:00:00 2001 From: Yingjie Xu <yxu@nexedi.com> Date: Mon, 21 May 2012 18:24:11 +0200 Subject: [PATCH] Two scripts to submit to test report module --- slapos/recipe/agent/__init__.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/slapos/recipe/agent/__init__.py b/slapos/recipe/agent/__init__.py index 6c04601ff..3f3c60497 100644 --- a/slapos/recipe/agent/__init__.py +++ b/slapos/recipe/agent/__init__.py @@ -88,11 +88,17 @@ class Recipe(BaseSlapRecipe, GenericSlapRecipe): agent_crond_path = os.path.join(self.crond, "agent") agent_crond = open(agent_crond_path, "w") - agent_crond.write("*/3 * * * * %s -S %s" % \ + agent_crond.write("*/5 * * * * %s -S %s\n" % \ (self.options["python_binary"], "%s --pidfile=%s %s" % \ (self.options["agent_binary"], self.options["pidfile"], configuration_path))) + agent_crond.write("1 0 * * * %s -S %s %s\n" % \ + (self.options["python_binary"], + self.options["report_start"], configuration_path)) + agent_crond.write("59 23 * * * %s -S %s %s\n" % \ + (self.options["python_binary"], + self.options["report_stop"], configuration_path)) agent_crond.close() return self.path_list + [configuration_path, key_filepath, cert_filepath, agent_crond_path] -- 2.30.9