MM not starting automatically
I flashed a brand new SD card with Raspbian Stretch and installed MM 2.41 using “bash -c “$(curl -sL https://raw.githubusercontent.com/MichMich/MagicMirror/master/installers/raspberry.sh)””
During this installation the script asked me, if I want to use pm2 for starting MM automatically at start up. I´ve chosen “yes”, but MM did not start at the end of the boot.
So, I tried:
sudo npm install -g pm2
and added the lines:
DISPLAY=:0 npm start”
But, MM is not starting after the end of the boot sequence.
I have to type in “pm2 start mm.sh” every time, but it is not working automatically.
Could someone help ?
Maybe I can help you. After typing pm2 starup, you have to type the command what is on the console.
Starting PM2 on Boot
To make sure PM2 can do it’s job when (re)booting your operating system, it needs to be started on boot. Luckily, PM2 has a handy helper for this.
PM2 will now show you a command you need to execute.
Thank you, done this several times… but this time I haven´t seen it…
it works now?