Read the statement by Michael Teeuw here.
PM2 stopped apps - autorestart does not work?
-
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
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login