3 #from monitor.reboot import *
9 # if "test" in sys.argv:
14 # for node in sys.argv[1:]:
15 # if node == "test": continue
17 # print "Rebooting %s" % node
18 # if reboot_policy(node, True, dryrun):
22 # except Exception, err:
23 # import traceback; traceback.print_exc()
24 # from monitor.common import email_exception
25 # email_exception(node)
29 if __name__ == '__main__':
31 f = open("/tmp/reboot", 'a')
32 f.write("reboot %s %s\n" % (time.time(), " ".join(sys.argv[1:])))