kvmd: supported unix sockets

This commit is contained in:
Devaev Maxim
2018-12-07 10:16:57 +03:00
parent 78e773cf82
commit 8229363ff6
3 changed files with 25 additions and 4 deletions

View File

@@ -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")