fix(agent): recover OpenResty runtime after invalid PID (#45)

* fix(agent): recover OpenResty runtime after invalid PID

* fix(agent): scope OpenResty shutdown to instance processes

---------

Co-authored-by: Noru Wyrms <wyrmsnoru@gmail.com>
This commit is contained in:
Ryan
2026-10-08 08:39:40 +08:00
committed by GitHub
parent fec9bd18dd
commit 96a17ae35d
15 changed files with 1000 additions and 91 deletions
@@ -0,0 +1,19 @@
//go:build !unix
// Copyright 2026 Arctel.net
// SPDX-License-Identifier: Apache-2.0
package nginx
import (
"context"
"errors"
)
func inspectOpenrestyProcesses(_ context.Context, _, _ string) ([]runtimeProcess, error) {
return nil, errors.New("safe openresty process recovery is unsupported on this platform; refusing an unverified start")
}
func signalOpenrestyProcess(_ context.Context, _, _ string, _ runtimeProcess, _ bool) error {
return errors.New("safe openresty process signalling is unsupported on this platform")
}