Start the Windows service right after install (parity with enable --now)

This commit is contained in:
mram
2026-09-21 08:12:13 +02:00
parent b421bb7bfb
commit e4e4348e8d
+4
View File
@@ -172,6 +172,10 @@ func Install(configPath string, copyBin bool) error {
s.Delete() // roll back so a retry starts clean
return err
}
// Best effort: start now instead of waiting for the next boot. A
// missing config (no consumer URLs) fails the start; the service stays
// registered and can be started once the config exists.
s.Start()
return nil
}