3
0
mirror of https://github.com/ergochat/ergo.git synced 2024-12-23 19:22:41 +01:00
ergo/irc/utils/signals.go

25 lines
378 B
Go
Raw Normal View History

//go:build !plan9 && !windows
2020-05-18 02:51:46 +02:00
// Copyright (c) 2020 Shivaram Lingamneni
// released under the MIT license
2021-09-19 10:02:44 +02:00
package utils
2020-05-18 02:51:46 +02:00
import (
"os"
"syscall"
)
var (
// ServerExitSignals are the signals the server will exit on.
ServerExitSignals = []os.Signal{
syscall.SIGINT,
syscall.SIGTERM,
syscall.SIGQUIT,
}
ServerTracebackSignals = []os.Signal{
syscall.SIGUSR1,
}
2020-05-18 02:51:46 +02:00
)