Read the statement by Michael Teeuw here.
pm2 dosn`t start mm.sh after reboot
-
@Skorpionbird in the pm2_setup.log, could you show me the rest of this line
command = sudo env PATH=$PATH:/usr/bin:/bin /usr/lib/node_modules/pm2/bin/pm2 startup sys$
and try this
sudo env PATH=$PATH:/usr/local/bin pm2 startup systemd -u pi --hp /home/pi
then , make sure MagicMirror is not running
cd ~/MagicMirror pm2 start installers/pm2_MagicMirror.json pm2 save
then reboot
-
@sdetweil said in pm2 dosn`t start mm.sh after reboot:
sudo env PATH=$PATH:/usr/local/bin pm2 startup systemd -u pi --hp /home/pi
thx with this it works fine
-
@sdetweil Have you a solution for mac osx catalina? THX
-
@trividar sure, just use the updated install script, which will be in the next release
see
https://forum.magicmirror.builders/topic/10171/anyone-want-to-try-updated-installer -
@sdetweil how can I execute this script?
-
@trividar read the instructions at the link I gave,
in a terminal window , use finder to find ‘terminal’ -
@sdetweil OK I found the link…
bash -c "$(curl -sL https://www.dropbox.com/s/rlh710ng0zwv3vp/raspberry.sh?dl=0)"
just a question, I have set up the magicmirror with all my settings etc. can I just execute this without loosing my stuff??
-
@trividar no… if u have it running, why do you need to install again?
if you don’t have it running, then u need to install…
you can copy the config.js to the new system, but you will have to install the modules and make sure to handle the dependencies they require
-
@sdetweil because I can’t get pm2 to work on my mac mini catalina
-
@trividar oh, pm2… then use the new script for that
see here
https://forum.magicmirror.builders/topic/10907/new-script-to-install-fix-pm2-config-for-start-on-bootsometimes it doesn’t restart on boot like I think it should (on catalina, worked great on sierra an high sierra). haven’t found the problem yet