feature: Adding service run command

This commit is contained in:
mlsmaycon
2021-06-19 14:55:45 +02:00
parent 6465e2556a
commit 41b50a08d4
6 changed files with 96 additions and 11 deletions

View File

@@ -48,10 +48,15 @@ var (
//signalClient.WaitConnected()
SetupCloseHandler()
select {}
<-stopUP
log.Println("Receive signal to stop running")
},
}
)
// Execution control channel for stopUP signal
var stopUP chan int
func init() {
stopUP = make(chan int)
}