Is there a graceful way to stop the miner?
I checked the http api and came to the conclusion that the controls there are mainly for config reload, pause, and, resume. Please let me know if I missed anything here.

Any suggestion on linux how I can run xmrig for a specified duration?