I have some nodejs scripts to query a mongo Db, but what I want is that this script is running indefinitely, maybe with a 5 minute sleep, and if it stops there is another script that he "revives" him.
Any ideas on how to do these processes? Is another script that is running the service and another script that supervises the first one active? and if so, any examples?