Commit 7ada3c77 authored by Yingjie Xu's avatar Yingjie Xu

Two scripts to submit to test report module

parent 6d2c660d
......@@ -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]
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment