exitProcessFromSignal exits the process from a system signal.
(sigName string)
| 55 | |
| 56 | // exitProcessFromSignal exits the process from a system signal. |
| 57 | func exitProcessFromSignal(sigName string) { |
| 58 | logger := Log().With(zap.String("signal", sigName)) |
| 59 | exitProcess(context.TODO(), logger) |
| 60 | } |
| 61 | |
| 62 | // Exit codes. Generally, you should NOT |
| 63 | // automatically restart the process if the |
no test coverage detected