Commit b6c31f1e authored by Lei Li's avatar Lei Li
Browse files

feat: 增加信号2和15

parent 95139855
...@@ -11,6 +11,7 @@ import ( ...@@ -11,6 +11,7 @@ import (
"os" "os"
"path/filepath" "path/filepath"
"strings" "strings"
"syscall"
"time" "time"
"linkfog.com/public/lib/l" "linkfog.com/public/lib/l"
...@@ -75,7 +76,7 @@ func (a *Agent) Start() error { ...@@ -75,7 +76,7 @@ func (a *Agent) Start() error {
} }
go func() { go func() {
l.Info("monitor_daemon run, cmdline:", cmdline) l.Info("monitor_daemon run, cmdline:", cmdline)
monitorDaemon.Run() monitorDaemon.Run(syscall.SIGTERM, syscall.SIGINT)
l.Info("======monitor_daemon stop======") l.Info("======monitor_daemon stop======")
}() }()
return nil return nil
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment