Read the statement by Michael Teeuw here.
MM not starting automatically
-
Hi there,
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
pm2 startup
cd ~
nano mm.shand added the lines:
“cd ~/MagicMirror
DISPLAY=:0 npm start”Then:
chmod +x mm.sh
pm2 start mm.sh
pm2 saveBut, 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 startup
PM2 will now show you a command you need to execute.
https://github.com/MichMich/MagicMirror/wiki/Auto-Starting-MagicMirror
-
Thank you, done this several times… but this time I haven´t seen it…
-
it works now?