Author: Pedro Lucas Porcellis <porcellis@eletrotupi.com>
server: use monitor instead of directly spawning the command
cmd/beterrabad/executor.ha | 6 +++---
diff --git a/cmd/beterrabad/executor.ha b/cmd/beterrabad/executor.ha index 9600bb0b5837b3799d3e5f786114fd579d789f6d..af4d4c803b6b96e276e4ffea61e80c1748b0f813 100644 --- a/cmd/beterrabad/executor.ha +++ b/cmd/beterrabad/executor.ha @@ -125,14 +125,14 @@ service.definition.cmd, service.definition.args); match (exec::fork()) { case let childpid: int => - service.status = beterraba::status::STARTED; + //service.status = beterraba::status::STARTED; service.process = childpid; log::printfln("Starting process {}", service.name); case let err: exec::error => return err; case void => - let cmd = exec::cmd(service.definition.cmd, - service.definition.args); + let cmd = exec::cmd("beterrabamon", + service.name); match (cmd) { case let cmddef: exec::command =>