Add sig{quit,term,int} handler that just quits application

This commit is contained in:
eleksir
2024-04-22 23:05:07 +03:00
parent 87361a4e6c
commit b36f1fd7d7
2 changed files with 7 additions and 1 deletions

View File

@@ -112,7 +112,10 @@ func main() {
go sigHandler()
signal.Notify(sigChan,
syscall.SIGUSR1,
syscall.SIGUSR2)
syscall.SIGUSR2,
syscall.SIGQUIT,
syscall.SIGTERM,
syscall.SIGINT)
// Populate memory stats
if Conf.Mem.Enabled {