Skip to content

A handy wrapper for starting and managing subprocesses in Go

Notifications You must be signed in to change notification settings

jakubdal/subprocess

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

Subprocess

Subprocess abstracts running processes with restarts.

Install

go get -u github.com/jakubdal/subprocess

Usage

Run a process that restarts on error

proc, err := subprocess.NewProcess(context.Background(), nil, "sleep", nil, "3s")

Stop the process

proc.Stop()

Send a signal to process

proc.Signal(os.Interrupt)

About

A handy wrapper for starting and managing subprocesses in Go

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages