prep for actual admission/hook efforts

This commit is contained in:
2023-03-18 11:43:52 -05:00
parent 9c1f349c97
commit 9dd4366e73
8 changed files with 212 additions and 148 deletions

View File

@@ -11,10 +11,10 @@ import (
func forever() {
c := make(chan os.Signal, 1)
signal.Notify(c, os.Interrupt, syscall.SIGTERM)
signal.Notify(c, os.Interrupt, syscall.SIGINT, syscall.SIGTERM)
sig := <-c
log.Printf("[INFO] shutting down, detected signal: %s", sig)
log.Printf("[INFO] Received %s signal, shutting down...", sig)
}
func main() {