Ups, there a bug for pm2 config. I pushed a fix
https://github.com/MichMich/MagicMirror/pull/640
The restart is work for me. Are you try stop/start?
pi@raspberrypi:~/MagicMirror $ pm2 status MagicMirror
┌─────────────┬────┬──────┬──────┬────────┬─────────┬────────┬─────┬──────────┬──────────┐
│ App name │ id │ mode │ pid │ status │ restart │ uptime │ cpu │ mem │ watching │
├─────────────┼────┼──────┼──────┼────────┼─────────┼────────┼─────┼──────────┼──────────┤
│ MagicMirror │ 0 │ fork │ 7689 │ online │ 1 │ 3h │ 0% │ 2.4 MB │ enabled │
└─────────────┴────┴──────┴──────┴────────┴─────────┴────────┴─────┴──────────┴──────────┘
Use `pm2 show ` to get more details about an app
pi@raspberrypi:~/MagicMirror $ pm2 restart MagicMirror
Restarts are now immutable, to update environment or conf use --update-env
[PM2] Applying action restartProcessId on app [MagicMirror](ids: 0)
[PM2] [MagicMirror](0) ✓
┌─────────────┬────┬──────┬──────┬────────┬─────────┬────────┬─────┬──────────┬──────────┐
│ App name │ id │ mode │ pid │ status │ restart │ uptime │ cpu │ mem │ watching │
├─────────────┼────┼──────┼──────┼────────┼─────────┼────────┼─────┼──────────┼──────────┤
│ MagicMirror │ 0 │ fork │ 6447 │ online │ 2 │ 0s │ 7% │ 2.3 MB │ enabled │
└─────────────┴────┴──────┴──────┴────────┴─────────┴────────┴─────┴──────────┴──────────┘
Use `pm2 show ` to get more details about an app
By the way, there a interesting notice in restart process by pm2
Restarts are now immutable, to update environment or conf use --update-env
Here I’m using 2.1.5 version
pi@raspberrypi:~/MagicMirror $ pm2 -version
2.1.5