Read the statement by Michael Teeuw here.
Magic Mirror runs twice on boot
-
I followed this guide to set up my MagicMirror on a Raspberry Pi 3B+
https://howchoo.com/g/ntcymzbimjv/how-to-install-magic-mirror-on-your-raspberry-pi
I get 2 instances of magic mirror that run every time. any way to remove one of them?
-
Are your instances mm, and the other, MagicMirror ?
Here is how to delete one, but the choice is yours.
pm2 stop mm
pm2 delete mm
pm2 save
rm ~/mm.sh
Then check your instances again
-
They are both labeled MagicMIrror2 and they both will automatically re-start if I quit them with CTRL+Q.
-
I think I fixed this. There was a file called mm.sh in the home directory, I moved it to the trash and I only see one instance now. I’m guessing there is something already starting Magic Mirror someplace else?
-
Uhhh
-
Not sure. I am new to all this, but that is what I did and it works now. Thanks for the help.
-
I had the situation where whenever I turned off the monitor and later turned it back on. MM would load a second instance of the server. Took me a while to figure out that it was the HDMI port that was the culprit. I was using a 32 inch Vizio TV and HDMI2. In trying to figure out why this was happening I tried another monitor and it worked correctly when turned on and off. So FYI it may be that the HDMI port that you are using is sending a signal to the MM software to reload the server when it is turned on again.
For clarification I am NOT turning off/on the server just the display.
Hope this helps someone else
-
@ByronJames never seen this happen
What OS is this??
Technically a second instance should fail as the port is in use by the first instance.