Read the statement by Michael Teeuw here.
When restarted with pm2 restart mm : i have 2 session's of mm
-
pi@raspberrypi-184:~/MagicMirror $ pm2 restart mm Use --update-env to update environment variables [PM2] Applying action restartProcessId on app [mm](ids: 0,1) [PM2] [mm](0) ✓ [PM2] [mm](1) ✓ ┌──────────┬────┬─────────┬──────┬───────┬─────────┬─────────┬────────┬─────┬──────────┬──────┬──────────┐ │ App name │ id │ version │ mode │ pid │ status │ restart │ uptime │ cpu │ mem │ user │ watching │ ├──────────┼────┼─────────┼──────┼───────┼─────────┼─────────┼────────┼─────┼──────────┼──────┼──────────┤ │ mm │ 0 │ 2.10.1 │ fork │ 0 │ errored │ 18752 │ 0 │ 0% │ 0 B │ pi │ disabled │ │ mm │ 1 │ N/A │ fork │ 23210 │ online │ 7 │ 0s │ 0% │ 2.5 MB │ pi │ disabled │ └──────────┴────┴─────────┴──────┴───────┴─────────┴─────────┴────────┴─────┴──────────┴──────┴──────────┘ Use `pm2 show <id|name>` to get more details about an appWhen restarted with pm2 restart mm : i have 2 session’s of mm
session 0 is errored !
What is the solution to stopped and deleted one of then ?Thanks
-
@Doudy said in When restarted with pm2 restart mm : i have 2 session's of mm:
What is the solution to stopped and deleted one of then ?
pm2 delete 0
-
@sdetweil
that is OK !pi@raspberrypi-184:~ $ pm2 delete 0 [PM2] Applying action deleteProcessId on app [0](ids: 0) [PM2] [mm](0) ✓ ┌──────────┬────┬─────────┬──────┬─────┬────────┬─────────┬────────┬─────┬──────────┬──────┬──────────┐ │ App name │ id │ version │ mode │ pid │ status │ restart │ uptime │ cpu │ mem │ user │ watching │ ├──────────┼────┼─────────┼──────┼─────┼────────┼─────────┼────────┼─────┼──────────┼──────┼──────────┤ │ mm │ 1 │ N/A │ fork │ 992 │ online │ 0 │ 11m │ 0% │ 2.5 MB │ pi │ disabled │ └──────────┴────┴─────────┴──────┴─────┴────────┴─────────┴────────┴─────┴──────────┴──────┴──────────┘ Use `pm2 show <id|name>` to get more details about an app pi@raspberrypi-184:~ $ pm2 restart mm Use --update-env to update environment variables [PM2] Applying action restartProcessId on app [mm](ids: 1) [PM2] [mm](1) ✓ ┌──────────┬────┬─────────┬──────┬──────┬────────┬─────────┬────────┬─────┬──────────┬──────┬──────────┐ │ App name │ id │ version │ mode │ pid │ status │ restart │ uptime │ cpu │ mem │ user │ watching │ ├──────────┼────┼─────────┼──────┼──────┼────────┼─────────┼────────┼─────┼──────────┼──────┼──────────┤ │ mm │ 1 │ N/A │ fork │ 7839 │ online │ 1 │ 0s │ 0% │ 2.6 MB │ pi │ disabled │ └──────────┴────┴─────────┴──────┴──────┴────────┴─────────┴────────┴─────┴──────────┴──────┴──────────┘ Use `pm2 show <id|name>` to get more details about an app pi@raspberrypi-184:~ $Thanks
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