Add parameter to watch process via PID for termination. Close #10

This commit is contained in:
Kleissner
2021-11-18 04:51:20 +01:00
parent 62909aa64f
commit c62d52889d
3 changed files with 53 additions and 9 deletions

View File

@@ -74,7 +74,10 @@ func init() {
}
func main() {
startAPI()
apiListen, apiKey, watchPID := parseCmdParams()
startAPI(apiListen, apiKey)
go processExitMonitor(watchPID)
core.Connect()