feat: exit listener after successful switch for automatic restart

After a successful switch deployment, the listener now exits gracefully
so systemd can restart it with the new binary. This works together with
stopIfChanged/restartIfChanged to ensure deployments complete before
the service restarts.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
2026-02-07 06:11:03 +01:00
parent ac3c9c7de6
commit efacb13b86
2 changed files with 26 additions and 8 deletions

View File

@@ -16,7 +16,7 @@ import (
"github.com/urfave/cli/v3"
)
const version = "0.1.4"
const version = "0.1.5"
func main() {
app := &cli.Command{