Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a new monitor script for monitoring local processes. On OSX development machines `systemctl` is not available so we need to rely on process status, `ps` command, to determine which processes are running. One limitation of using `ps` is that we are unable to determine the status for a process that has exited. But to keep consistent with the output Monitor expects we append a status line "unknown" for each process. The biggest difference between the new and old script is that this script does not contain any logic to detect process changes, but rather only provides information on cockroach processes back to the caller. It does however optimise a little bit by not resending the information if it has not changed. This now puts the responsibility on the caller (Monitor) to maintain the logic for detecting process changes and emitting events. Epic: None
- Loading branch information