sigterm

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package sigterm provides graceful termination signal utilities.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(ctx context.Context, c *exec.Cmd) error

Run is like calling Run on os/exec.CommandContext but uses SIGTERM on Unix-based systems.

func Signals

func Signals() []os.Signal

Signals returns the list of signals to listen for graceful termination.

func Start

func Start(ctx context.Context, c *exec.Cmd) (wait func() error, err error)

Start is like calling Start on os/exec.CommandContext but uses SIGTERM on Unix-based systems.

Types

This section is empty.

Jump to

Keyboard shortcuts

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