X-Git-Url: https://glassweightruler.freedombox.rocks/gitweb/waydroid.git/blobdiff_plain/bf567ae4e575924983f12353a414d4ce19fe5fa2..791d9709918a6ebf0945b0aa1eca18031c95baf7:/tools/actions/container_manager.py diff --git a/tools/actions/container_manager.py b/tools/actions/container_manager.py index ce04180..776ced9 100644 --- a/tools/actions/container_manager.py +++ b/tools/actions/container_manager.py @@ -213,6 +213,14 @@ def stop(args): else: logging.error("WayDroid container is {}".format(status)) +def restart(args): + status = helpers.lxc.status(args) + if status == "RUNNING": + helpers.lxc.stop(args) + helpers.lxc.start(args) + else: + logging.error("WayDroid container is {}".format(status)) + def freeze(args): status = helpers.lxc.status(args) if status == "RUNNING":