Do not subscribe to SIGTERM

This commit is contained in:
Gregory Eremin 2015-10-14 03:36:23 +03:00
parent 650c9d1b9d
commit 463609a403

View File

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