Skip to content

Commit 0e7df5c

Browse files
committed
Edit supervisor stop command for AIX
1 parent 71b8943 commit 0e7df5c

File tree

2 files changed

+21
-1
lines changed

2 files changed

+21
-1
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
// Copyright The OpenTelemetry Authors
2+
// SPDX-License-Identifier: Apache-2.0
3+
4+
//go:build aix
5+
6+
package commander
7+
8+
import (
9+
"os"
10+
"syscall"
11+
)
12+
13+
func sendShutdownSignal(process *os.Process) error {
14+
return process.Signal(syscall.SIGTERM)
15+
}
16+
17+
func sysProcAttrs() *syscall.SysProcAttr {
18+
// On non-windows systems, no extra attributes are needed.
19+
return nil
20+
}

cmd/opampsupervisor/supervisor/commander/commander_others.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Copyright The OpenTelemetry Authors
22
// SPDX-License-Identifier: Apache-2.0
33

4-
//go:build !windows
4+
//go:build !windows && !aix
55

66
package commander
77

0 commit comments

Comments
 (0)