1
0
Fork 0

Do not subscribe to SIGTERM

This commit is contained in:
Gregory Eremin 2015-10-14 03:36:23 +03:00
parent 650c9d1b9d
commit 463609a403
1 changed files with 1 additions and 2 deletions

View File

@ -6,7 +6,6 @@ import (
"log"
"os"
"os/signal"
"syscall"
"github.com/localhots/uberdaemon"
"github.com/localhots/uberdaemon/example/daemons"
@ -26,7 +25,7 @@ func main() {
defer uberd.Stop()
sig := make(chan os.Signal)
signal.Notify(sig, os.Interrupt, syscall.SIGTERM)
signal.Notify(sig, os.Interrupt)
for s := range sig {
if s == os.Interrupt {