Global code ovehaul - remove CAS and other, add 15 minute greet check
- Remove CAS, as it no longer works for us - Remove other checks - Implement 15 minute greet timeout check - Fix chat logos - Ditch thirdparty logger, use stdlib log facility wrapper for logging
This commit is contained in:
25
internal/moon/signals_unix.go
Normal file
25
internal/moon/signals_unix.go
Normal file
@@ -0,0 +1,25 @@
|
||||
//go:build !windows
|
||||
|
||||
package moon
|
||||
|
||||
import (
|
||||
"os"
|
||||
"syscall"
|
||||
)
|
||||
|
||||
// terminationSignals are the signals that ask the bot to shut down.
|
||||
func terminationSignals() []os.Signal {
|
||||
return []os.Signal{syscall.SIGINT, syscall.SIGTERM, syscall.SIGQUIT}
|
||||
}
|
||||
|
||||
// reopenSignals are the signals that ask the bot to re-open its log file.
|
||||
//
|
||||
// SIGHUP is the conventional daemon signal for "re-read your configuration and
|
||||
// re-open your logs"; SIGUSR1 is the other common choice for log re-opening
|
||||
// alone. Both are accepted so the bot fits either convention an operator's
|
||||
// logrotate configuration expects.
|
||||
func reopenSignals() []os.Signal {
|
||||
return []os.Signal{syscall.SIGHUP, syscall.SIGUSR1}
|
||||
}
|
||||
|
||||
/* vim: set ft=go noet ai ts=4 sw=4 sts=4: */
|
||||
Reference in New Issue
Block a user