Are you using PM2 but not able to use it in the right way? or did you even know that PM2 allows you to configure and you could customize the flow as per your requirements, check it out and let me know your thoughts.