mirror of
https://github.com/gravitl/netmaker.git
synced 2025-10-05 16:57:51 +08:00
added os.kill
This commit is contained in:
@@ -64,7 +64,7 @@ func Daemon() error {
|
|||||||
wg.Add(1)
|
wg.Add(1)
|
||||||
go Checkin(ctx, &wg, commsNetworks)
|
go Checkin(ctx, &wg, commsNetworks)
|
||||||
quit := make(chan os.Signal, 1)
|
quit := make(chan os.Signal, 1)
|
||||||
signal.Notify(quit, syscall.SIGTERM, os.Interrupt)
|
signal.Notify(quit, syscall.SIGTERM, os.Interrupt, os.Kill)
|
||||||
<-quit
|
<-quit
|
||||||
for currCommsNet := range commsNetworks {
|
for currCommsNet := range commsNetworks {
|
||||||
if cancel, ok := networkcontext.Load(currCommsNet); ok {
|
if cancel, ok := networkcontext.Load(currCommsNet); ok {
|
||||||
|
Reference in New Issue
Block a user