[ ] match multiple patterns [x] cmd exec: [x] repeat on cmd failure [x] disable profile on cmd failure [x] exec_end: cmd to execute when matching state ends [ ] on-off commands [x] should execute cmd once if `run_once` is true [ ] should reset the state next time process appears [test] [ ] use state machine ? - conditions: - resource conditions - cpu time - cpu % - cpu load - ram % - ram size