While seemingly a good idea at the start, I will say, there are use-cases where your resources for lack of a better word “Need-to-die” - And I’m not just talking about scripts that aren’t made to be permanent, but there are cases where scripts will die out because you just didn’t account for a particular usecase…
- missing parameter?
- Unexpected return value
- extra entry in a table
- etc
While I do love the idea of heartbeats and monitoring for your various scripts (that go beyond the server console interface), I want to make a point that the immediate answer to a script dying (either for errors or otherwise) should be to improve the core source-code first and foremost.
And there are plenty of built in mechanisms (although I wish discussed more here) such as promises, pcalls, safe table navigations, and other built in features (depending on your langauge) that can prevent a lot of these ‘script-stoppages’ if infact used correctly.
AND I WANT TO RE-ITERATE, I’m NOT SAYING THIS TO BE A HATER, I think this is a good idea, but just for anyone reading thinking this is the “quick solution” to a script that errors out: You may be inviting other issues into your code by not addressing the root of your problem!
Just my unsolicited, (“Nobody asked me”), twocents…
Edit: And Promises within the forums