fix(watchdog): ensure watchdog binary is executable before starting the process

This commit is contained in:
2026-05-10 18:26:36 +08:00
parent 933c12fca1
commit a7d6bb0cb8

View File

@@ -94,6 +94,7 @@ func syncRunningInstancesToWatchdog() {
func ensureWatchdogProcess() error {
watchdogName, err := getWatchdogBinaryName()
exec.Command("chmod", "+x", filepath.Join(".", "watchdog", watchdogName)).Run()
if err != nil {
return err
}