diff options
author | Devaev Maxim <[email protected]> | 2018-12-07 10:16:57 +0300 |
---|---|---|
committer | Devaev Maxim <[email protected]> | 2018-12-07 10:16:57 +0300 |
commit | 8229363ff6e2f2cbd21652fb02085c58cb190bb5 (patch) | |
tree | 207de2dcb75133511fae6cbeb4d21defe4e42b3d /kvmd/apps/cleanup | |
parent | 78e773cf82754ce76ee41a0feac41eae586412dc (diff) |
kvmd: supported unix sockets
Diffstat (limited to 'kvmd/apps/cleanup')
-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") |