While searching for lua process monitoring, including ability to automatically restart I came across this project which seems pretty interesting, but there's been no update in like the last 2 years --
https://github.com/miGlanz/watchmanAnyhow has used or is using watchman ? Any feedback that can be shared ?