X-Git-Url: http://git.onelab.eu/?p=monitor.git;a=blobdiff_plain;f=commands%2Freboot.py;h=d5ce3184b481f4a8c51ce5a223be629d4efc7eb3;hp=92e0f690210f036629a969abbeeee00f3f8c79cb;hb=HEAD;hpb=e637272100e8e03884188cb2118b21158e739bb0 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()