Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Lei Li
agent
Commits
b6c31f1e
Commit
b6c31f1e
authored
Oct 15, 2024
by
Lei Li
Browse files
feat: 增加信号2和15
parent
95139855
Changes
1
Show whitespace changes
Inline
Side-by-side
cmd/agent/core/agent.go
View file @
b6c31f1e
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment