PM2 startup Autostart didn't work
I almost finish with my Magic Mirror but there is a little problem with the autostart. I did this with these manual:
But i still don’t work. I read a lot in the Internet but I didnt’ get the rigth information.
I recognized by trying
sudo pm2 startup
There is an error "[PM2][ERROR] No processes saved; DUMP file doesn’t exist"
But i saved the state with the command
I’ve no idea were my misstace is.
I hope you can held me
Thank you all
I think the issue is that the command you need to run isn’t “sudo pm2 startup”.
If you run “pm2 startup”, the real command you’ll need to run appear
pi@raspberrypi:~ $ pm2 startup [PM2] Init System found: systemd [PM2] You have to run this command as root. Execute the following command: sudo env PATH=$PATH:/usr/bin /usr/lib/node_modules/pm2/bin/pm2 startup systemd -u pi --hp /home/pi
Good to know