]> glassweightruler.freedombox.rocks Git - waydroid.git/blobdiff - tools/__init__.py
debian: Add LXC as dependency
[waydroid.git] / tools / __init__.py
index cdb5cdd017192a4c96186e437a8cbb732029ff44..7c948d452e36810cf97076ac0ba04aad56ae3ade 100644 (file)
@@ -27,7 +27,7 @@ def main():
         args.cache = {}
         args.work = config.defaults["work"]
         args.config = args.work + "/waydroid.cfg"
-        args.log = args.work + "/tools.log"
+        args.log = args.work + "/waydroid.log"
         args.sudo_timer = True
         args.timeout = 1800
 
@@ -64,7 +64,7 @@ def main():
                 actions.container_manager.start(args)
             elif args.subaction == "stop":
                 actions.container_manager.stop(args)
-            if args.subaction == "restart":
+            elif args.subaction == "restart":
                 actions.container_manager.restart(args)
             elif args.subaction == "freeze":
                 actions.container_manager.freeze(args)
@@ -108,8 +108,11 @@ def main():
         elif args.action == "log":
             if args.clear_log:
                 helpers.run.user(args, ["truncate", "-s", "0", args.log])
-            helpers.run.user(
-                args, ["tail", "-n", args.lines, "-F", args.log], output="tui")
+            try:
+                helpers.run.user(
+                    args, ["tail", "-n", args.lines, "-F", args.log], output="tui")
+            except KeyboardInterrupt:
+                pass
         else:
             logging.info("Run waydroid -h for usage information.")