Skip starting if jail already running
This commit is contained in:
parent
4b9072cca7
commit
88f5951989
3
jlmkr.py
3
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)
|
||||
|
|
Loading…
Reference in New Issue