Skip to content

Latest commit

 

History

History
17 lines (12 loc) · 687 Bytes

README.md

File metadata and controls

17 lines (12 loc) · 687 Bytes

sigterm

A subset of the syscall package for terminating processes. This package provides a Signal type that implements the encoding.TextMarshaller and encoding.TextUnmarshaler interfaces for text-based serialization and deserialization. It can be used for configuration management using environment variables1 or flags 2.

List of termination signals can be found in the GNU libc manual 3.

Installation

go get -u github.com/josestg/sigterm

Footnotes

  1. https://github.com/caarlos0/env

  2. https://golang.org/pkg/flag/#TextVar

  3. https://www.gnu.org/software/libc/manual/html_node/Termination-Signals.html