summaryrefslogtreecommitdiff
path: root/kvmd/apps/cleanup
diff options
context:
space:
mode:
authorDevaev Maxim <[email protected]>2018-12-07 10:16:57 +0300
committerDevaev Maxim <[email protected]>2018-12-07 10:16:57 +0300
commit8229363ff6e2f2cbd21652fb02085c58cb190bb5 (patch)
tree207de2dcb75133511fae6cbeb4d21defe4e42b3d /kvmd/apps/cleanup
parent78e773cf82754ce76ee41a0feac41eae586412dc (diff)
kvmd: supported unix sockets
Diffstat (limited to 'kvmd/apps/cleanup')
-rw-r--r--kvmd/apps/cleanup/__init__.py5
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")