add systemd service files

collect configiguration together
update README
This commit is contained in:
2020-01-15 14:48:44 +01:00
parent d31c1ae72d
commit 41861da83e
6 changed files with 68 additions and 48 deletions

View File

@@ -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")