diff options
Diffstat (limited to 'kvmd/apps/cleanup/__init__.py')
-rw-r--r-- | kvmd/apps/cleanup/__init__.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/kvmd/apps/cleanup/__init__.py b/kvmd/apps/cleanup/__init__.py index c99fd271..22a9cede 100644 --- a/kvmd/apps/cleanup/__init__.py +++ b/kvmd/apps/cleanup/__init__.py @@ -37,4 +37,9 @@ def main() -> None: except subprocess.CalledProcessError: pass + unix_path = config["server"]["unix"] + if unix_path and os.path.exists(unix_path): + logger.info("Removing socket %r ...", unix_path) + os.remove(unix_path) + logger.info("Bye-bye") |