goreap

module
v0.0.0-...-d7273bf Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2022 License: ISC

README

SYNOPSIS

Go Reference

goreap [options] <...>

DESCRIPTION

Supervise and terminate subprocesses.

See reap.

BUILDING

cd cmd/goreap
CGO_ENABLED=0 go build -trimpath -ldflags "-s -w"

EXAMPLES

goreap cat

goreap sh -c "sleep inf & sleep inf & sleep 5"

$ goreap sh -c "sleep inf & sleep inf & pstree -pga $$; sleep 5"
bash,9062,9062
	└─goreap,31262,31262 sh -c ...
			├─sh,31267,31262 -c sleep inf & sleep inf & pstree -pga 9062; sleep 5
			│   ├─pstree,31270,31262 -pga 9062
			│   ├─sleep,31268,31262 inf
			│   └─sleep,31269,31262 inf
			├─{goreap},31263,31262
			├─{goreap},31264,31262
			├─{goreap},31265,31262
			├─{goreap},31266,31262
			├─{goreap},31271,31262
			└─{goreap},31272,31262

OPTIONS

deadline : send SIGKILL if processes running after deadline (0 to disable) (default 60s)

disable-setuid : disallow setuid (unkillable) subprocesses

delay duration : interval between signals (0 to disable) (default 1s)

signal int : signal sent to supervised processes (default 15)

verbose : debug output

wait : wait for subprocesses to exit

TESTS

bats test

Directories

Path Synopsis
cmd
Package process enumerates the process table for all processes or descendants of a process.
Package process enumerates the process table for all processes or descendants of a process.
Package reap configures the go process as a process supervisor.
Package reap configures the go process as a process supervisor.
Package subreaper sets the process as the init for descendant processes.
Package subreaper sets the process as the init for descendant processes.

Jump to

Keyboard shortcuts

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