Hello,
I have some data collector nodejs apps controlled by PM2. After some hours they are displayed as stopped in “pm2 list”
Here it some info from “pm2 show”
│ status │ stopped │
│ name │ order_book_ticker │
│ restarts │ 6 │
│ uptime │ 0 │
│ script path │ /var/cap/public/apis/order_book_ticker.js │
│ script args │ D12 │
│ error log path │ /root/.pm2/logs/order-book-ticker-error-69.log │
│ out log path │ /root/.pm2/logs/order-book-ticker-out-69.log │
│ pid path │ /root/.pm2/pids/order-book-ticker-69.pid │
│ interpreter │ node │
│ interpreter args │ N/A │
│ script id │ 69 │
│ exec cwd │ /var/cap │
│ exec mode │ fork_mode │
│ node.js version │ 7.7.4 │
│ watch & reload │ ✘ │
│ unstable restarts │ 0 │
│ created at │ 2017-08-12T01:05:07.307Z │
└───────────────────┴────────────────────────────
I want pm2 to restart the scirpt always if it crashes…
May be there is some setting that prevents restarts?
thx
michael