terminationworker

package
v0.0.0-...-a0d7459 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2017 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const TerminationSignal = syscall.SIGABRT

TerminationSignal is the signal that indicates the agent should terminate and uninstall itself.

We do not use SIGTERM as SIGTERM is the default signal used to initiate a graceful shutdown.

Variables

This section is empty.

Functions

func Manifold

func Manifold() dependency.Manifold

Manifold returns a manifold whose worker returns ErrTerminateAgent if a termination signal is received by the process it's running in.

func NewWorker

func NewWorker() worker.Worker

NewWorker returns a worker that waits for a TerminationSignal signal, and then exits with worker.ErrTerminateAgent.

Types

This section is empty.

Jump to

Keyboard shortcuts

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