Read the statement by Michael Teeuw here.
PM2 not starting up on boot
-
Hey Guys,
1st timer here, i got my mirror exactly how i want it.
only one part missing and i am getting that Monday.Side from that, i am having trouble with PM2 starting up electron on boot.
somehow i was able to do this but i damaged the config.js file, and decided to do a full reinstall of magic mirror.
Any help on getting PM2 to auto start as soon as its on Jessie GUI Desktop ? -
You need start the script of run the MagicMirror system. After that save the configuration of PM2 with
pm2 saveThere a good documentation how to do in https://github.com/MichMich/MagicMirror/wiki/Auto-Starting-MagicMirror
-
@roramirez That is exactly why i opened this up, i followed the instructions and still nothing.
-
I have the same problem and have not yet tried to fixed it (Yea, Im lazy)… But I did another MM where it just works…
I have a theory… I think (just think, absolute not sure) that you have to “npm install && npm start” in “/MagicMirror” folder that got mine working.As I said, not tried this theory yet…
-
After a reboot… what is the output for
pm2 listPS: Maybe your script (mm.sh) not have execution permission.
-
@roramirez i did pm2 list, and there is nothing under App name
how do i give (mm.sh) execution permission ?
is it ?chmod +x mm.sh
this command was already done.
-
@gshimself nothing, the best bet is to reinstall raspberian again and see.
THIS I DON’T WANT TO DO.
-
@Nazfera2 not is the best, is the last resource ;)
Maybe the problem raise the pm2 install.
Check https://github.com/Unitech/pm2/issues/1654#issuecomment-145071292
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login