Slow down restart rate for starterd
1 second delay is too short and results in cascading failures. Shutdown
isn't actually RT, so it can take down other parts of the system.
Change-Id: Iea364e05ef4547cb2a9755efbf98fb8d488d2f9d
Signed-off-by: Austin Schuh <austin.linux@gmail.com>
diff --git a/aos/starter/starter_cmd.cc b/aos/starter/starter_cmd.cc
index 91dccd3..95967bb 100644
--- a/aos/starter/starter_cmd.cc
+++ b/aos/starter/starter_cmd.cc
@@ -85,7 +85,7 @@
const aos::starter::Command command = command_search->second;
const auto application_name = aos::starter::FindApplication(argv[1], config);
if (aos::starter::SendCommandBlocking(command, application_name, config,
- chrono::seconds(3))) {
+ chrono::seconds(5))) {
switch (command) {
case aos::starter::Command::START:
std::cout << "Successfully started " << application_name << '\n';
@@ -118,7 +118,7 @@
if (aos::starter::SendCommandBlocking(aos::starter::Command::RESTART,
application_name, config,
- chrono::seconds(3))) {
+ chrono::seconds(5))) {
std::cout << "Successfully restarted " << application_name << '\n';
} else {
std::cout << "Failed to restart " << application_name << '\n';