Now have a simple tester .exe that will do various start/stop/run patterns and then used that to sort out how to monitor the processes and keep them running. Next is to add process monitoring and a way to signal ozai to stop something.
parent
0c9bfe2f76
commit
1ba7fc14ff
@ -1,8 +1,14 @@ |
||||
{ |
||||
"Processes": { |
||||
"ssgod": { |
||||
"Name": "ssgod", |
||||
"Command": "ssgod" |
||||
"tester1": { |
||||
"Name": "tester", |
||||
"Command": "tester", |
||||
"Args": ["-count", "2", "-id", "1"] |
||||
}, |
||||
"tester2": { |
||||
"Name": "tester", |
||||
"Command": "tester", |
||||
"Args": ["-count", "5", "-id", "2"] |
||||
} |
||||
} |
||||
} |
||||
|
@ -0,0 +1,18 @@ |
||||
package main |
||||
|
||||
import ( |
||||
"fmt" |
||||
"time" |
||||
"flag" |
||||
) |
||||
|
||||
func main() { |
||||
|
||||
count := flag.Int("count", 10, "Seconds to wait") |
||||
id := flag.Int("id", 1, "Tester ID to use.") |
||||
|
||||
for i := 0; i < *count; i++ { |
||||
time.Sleep(1 * time.Second) |
||||
fmt.Println("TICK", *id) |
||||
} |
||||
} |
Loading…
Reference in new issue