proc
import { waitProcess } from 'sysopkit/op/proc';waitProcess()
Section titled “waitProcess()”Waits for a process to start or stop:
// Wait for nginx to startawait waitProcess({ name: 'nginx', state: 'running', delay: 1000 });
// Wait for nginx to stopawait waitProcess({ name: 'nginx', state: 'stopped', delay: 500 });