Skip starting if jail already running

This commit is contained in:
Jip-Hop 2023-08-15 13:33:01 +02:00
parent 4b9072cca7
commit 88f5951989
1 changed files with 3 additions and 0 deletions

View File

@ -193,6 +193,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)