add systemd service files
collect configiguration together update README
This commit is contained in:
@@ -13,6 +13,8 @@ import (
|
||||
func SetupCloseHandler() {
|
||||
c := make(chan os.Signal, 2)
|
||||
signal.Notify(c, os.Interrupt, syscall.SIGTERM)
|
||||
signal.Notify(c, os.Interrupt, syscall.SIGHUP)
|
||||
signal.Notify(c, os.Interrupt, syscall.SIGKILL)
|
||||
go func() {
|
||||
<-c
|
||||
fmt.Println("\r- Ctrl+C pressed in Terminal")
|
||||
|
||||
Reference in New Issue
Block a user