Read the statement by Michael Teeuw here.
PM2 MM2 Not starting on start up
- 
@nuckinfutz
pm2 start mm.sh - 
I solved the same issue by using the command:
sudo pm2 startup systemd -u pi --hp /home/piAnd then using
pm2 saveto save the state. - 
@shbatm
will note that down thanks! - 
@Desertswing No idea what that did but it worked, just need to make it show the weather as that seems to have gone away
 - 
Try here as an alternative
https://forum.magicmirror.builders/topic/2716/pm2-alternative
 - 
@shbatm said in PM2 MM2 Not starting on start up:
sudo pm2 startup systemd -u pi --hp /home/pi
Can also confirm this worked for me, too.
Thank you @shbatm
 - 
 - 
@pum there is an existing script provided by MagicMirror now, please try deleting everything on your ~/.pm2 directory, then using:
sudo su -c "env PATH=$PATH:/usr/bin pm2 startup linux -u pi --hp /home/pi" pm2 start ~/MagicMirror/installers/pm2_MagicMirror.json pm2 saveYou may have to use
systemdinstead oflinuxin the first line if you get an error. - 
@shbatm I did all I should follow but it still doesn’t work for me, I’m using Rpi4b. It warning me:
PM2 is not managing any process, skipping save…
Plz help me my boyfriend’s birthday is under eyes!!
Thanks a lot!
 - 
@MarvellousMili run the fixuppm2.sh script from here
 
