73f77f1624
This makes systemd not put unit into fail mode when stopping INFO: * make sure to use signals.RegisterCloser for everything that should be closed on interrupt * for any net.Listeners created make sure to wrap them with network.WrapListener and register with signals.RegisterCloser
7 lignes
124 o
Go
7 lignes
124 o
Go
package signals
|
|
|
|
// handle interrupt signal, platform independent
|
|
func interrupted() {
|
|
closeClosers()
|
|
handleInterrupt()
|
|
}
|