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

feat: 增加信号2和15

parent 95139855
......@@ -11,6 +11,7 @@ import (
"os"
"path/filepath"
"strings"
"syscall"
"time"
"linkfog.com/public/lib/l"
......@@ -75,7 +76,7 @@ func (a *Agent) Start() error {
}
go func() {
l.Info("monitor_daemon run, cmdline:", cmdline)
monitorDaemon.Run()
monitorDaemon.Run(syscall.SIGTERM, syscall.SIGINT)
l.Info("======monitor_daemon stop======")
}()
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