From 69ac7f7daeba43808ddb9964f3aa53d9a9310da0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Hauge=20Bj=C3=B8rnskov?= <19725+henrikbjorn@users.noreply.github.com> Date: Wed, 15 Oct 2025 14:44:17 +0200 Subject: [PATCH] Remove socket when overmind process is stopped. --- start/command_center.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/start/command_center.go b/start/command_center.go index b0ff77f..b214189 100644 --- a/start/command_center.go +++ b/start/command_center.go @@ -3,6 +3,7 @@ package start import ( "fmt" "net" + "os" "regexp" "strconv" "strings" @@ -59,6 +60,10 @@ func (c *commandCenter) Start() (err error) { func (c *commandCenter) Stop() { c.stop = true c.listener.Close() + + if c.Network == "unix" { + os.Remove(c.SocketPath) + } } func (c *commandCenter) handleConnection(conn net.Conn) {