Add a workaround to a bug where machines are not rebooting sometimes
This sends a -HUP to init (pid 1) which causes it to reparse its config and nothing else.
Signed-off-by: Scott Zawalski <[email protected]>
git-svn-id: http://test.kernel.org/svn/autotest/trunk@3002 592f7852-d20e-0410-864c-8624ca9c26a4
diff --git a/server/hosts/abstract_ssh.py b/server/hosts/abstract_ssh.py
index 063e7cf..58c2a25 100644
--- a/server/hosts/abstract_ssh.py
+++ b/server/hosts/abstract_ssh.py
@@ -314,6 +314,9 @@
"Shutdown took longer than %ds" % warning_timer)
# Print the warning only once.
warning_timer = None
+ # If a machine is stuck switching runlevels
+ # This may cause the machine to reboot.
+ self.run('kill -HUP 1', ignore_status=True)
time.sleep(1)
current_time = time.time()