From: Stephen Soltesz Date: Fri, 4 Jun 2010 21:56:10 +0000 (+0000) Subject: add logging to reboot.py X-Git-Tag: monitor-3.1-1~39 X-Git-Url: http://git.onelab.eu/?p=monitor.git;a=commitdiff_plain;h=bc662315c698a813b8b6dc0d30e9fa30cb0aa887 add logging to reboot.py --- diff --git a/commands/reboot.py b/commands/reboot.py index 92e0f69..d5ce318 100755 --- a/commands/reboot.py +++ b/commands/reboot.py @@ -1,6 +1,7 @@ #!/usr/bin/python from monitor.reboot import * +import time def main(): logger.setLevel(logging.DEBUG) @@ -33,5 +34,5 @@ def main(): if __name__ == '__main__': main() f = open("/tmp/rebootlog", 'a') - f.write("reboot %s\n" % sys.argv) + f.write("reboot %s %s\n" % (time.time(), " ".join(sys.argv[1:]))) f.close()