From 88f595198925c83092e21efee4fe7d10c87aab22 Mon Sep 17 00:00:00 2001 From: Jip-Hop <2871973+Jip-Hop@users.noreply.github.com> Date: Tue, 15 Aug 2023 13:33:01 +0200 Subject: [PATCH] Skip starting if jail already running --- jlmkr.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/jlmkr.py b/jlmkr.py index b28b72a..1797323 100755 --- a/jlmkr.py +++ b/jlmkr.py @@ -192,6 +192,9 @@ def start_jail(jail_name): """ Start jail with given name. """ + + if jail_is_running(jail_name): + fail(f"Skipped starting jail {jail_name}. It appears to be running already...") jail_path = get_jail_path(jail_name) jail_config_path = get_jail_config_path(jail_name)