dcpproc

package
v0.23.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 30, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DCP_DISABLE_MONITOR_PROCESS = "DCP_DISABLE_MONITOR_PROCESS"
)

Variables

This section is empty.

Functions

func RunContainerWatcher

func RunContainerWatcher(
	pe process.Executor,
	containerID string,
	log logr.Logger,
)

Starts the container monitor for the given container ID, using current process as the "monitored", or watched, process. The caller should ensure that the current process is the correct process to monitor. Errors are logged, but no error is returned if the container monitor fails to start-- container monitor is considered a "best-effort reliability enhancement".

func RunProcessWatcher

func RunProcessWatcher(
	pe process.Executor,
	childPid process.Pid_t,
	childStartTime time.Time,
	log logr.Logger,
)

Starts the process monitor for the given child process, using current process as the "monitored", or watched, process. The caller should ensure that the current process is the correct process to monitor. Errors are logged, but no error is returned if the process monitor fails to start-- process monitor is considered a "best-effort reliability enhancement". Note: DCP process doesn't shut down if DCPCTRL goes away, but DCPCTRL will shut down if DCP process goes away, so monitoring DCPCTRL is a safe bet.

func SimulateStopProcessTreeCommand

func SimulateStopProcessTreeCommand(pe *internal_testutil.ProcessExecution) int32

func StopProcessTree

func StopProcessTree(
	ctx context.Context,
	pe process.Executor,
	rootPid process.Pid_t,
	rootProcessStartTime time.Time,
	log logr.Logger,
) error

Runs stop-process-tree command to stop the process tree rooted at the given process.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL