Read the statement by Michael Teeuw here.
Auto start when rebooting
-
I’ve followed all the instruction for auto starting my mirror when rebooting , from https://docs.magicmirror.builders/configuration/autostart.html#using-pm2 but it still not starting when rebooting my RPi
-
@sdetweil it’s working now thanks , I have some others code that I want to run them in the background , how can i add them ?
-
@sakliadem can u show the output of pm2 logs --lines=30
-
-
@sakliadem when I write pm2 start mm.sh , it starts correctly , but when rebooting , nothing happens
-
@sakliadem after doing the pm2 start, you have to do the pm2 save, so it will know to restart that process…
u could use my script that does all that
see fixuppm2 at the bottom of -
@sdetweil it’s working now thanks , I have some others code that I want to run them in the background , how can i add them ?
-
@sakliadem, for each
pm2 start xxx.sh
pm2 save -
@sdetweil and how to stop the auto run ?
-
@sakliadem stop from auto starting?
pm2 stop xx
pm2 savereboot
see pm2 – help
for all the things it can do