0

I'am using Node.js API to start a long living script using spawn module. My problem is that, when my Node.js API is stopped the started script also killed. Is there any solution to start a script via Node.js not on the Node.js thread?

bummm26
  • 159
  • 3
  • 17
  • 3
    https://pm2.keymetrics.io/ – Dilshan Mar 23 '21 at 12:23
  • I think its [Duplicated](https://stackoverflow.com/questions/50412711/how-to-auto-restart-node-script-or-init-d-service-starting-that-node-after-c) question. – Tuna Mar 23 '21 at 12:34

0 Answers0