terminator

package
v0.0.135 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ITerminator

type ITerminator interface {
	WaitOSInterruptSignalAndShutDown()
}

type Service

type Service struct {
	Services []terminated.IGracefulShutDownService
}

func (*Service) WaitOSInterruptSignalAndShutDown

func (t *Service) WaitOSInterruptSignalAndShutDown()

WaitOSInterruptSignalAndShutDown Wait for interrupt signal to gracefully shut down the services kill (no param) default send syscall.SIGTERM kill -2 is syscall.SIGINT kill -9 is syscall. SIGKILL but can"t be caught, so don't need to add it

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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