Read the statement by Michael Teeuw here.
PM2 MM2 Not starting on start up
-
@sebzx10r Its directory is /etc/init.d/pm2-init.sh
-
@sebzx10r The way i did it also is used WinSCP to shh in to raspberry.
-
-
Hey,yes, I go to that same exact directory,but the file isn’t there. And yes I can load MM with pm2 start mm.sh. That’s what so weird about the whole thing. It’s as if the file doesn’t exist but yet the program is working somehow.
-
Hey,I kind of did a work around. I found this on another forum:
I also searched for days without success but then, I got it to work quite simply.In Raspian click Menu,Preferences,Main Menu Editor
Click Preferences and check Default applications for LXSession
Click OK and close main menu editor
Now click Menu and Under Preferences click on Default applications for LXSession
LXSession configuration opens
Click Autostart
Under Manual autostarted applications paste in your java command line
click add
close the LXSession configuration application and reboot your pi
your java app should run after reboot -
@sebzx10r What line did you put in the field? I can’t get it to work.
-
@nuckinfutz
pm2 start mm.sh -
I solved the same issue by using the command:
sudo pm2 startup systemd -u pi --hp /home/pi
And then using
pm2 save
to save the state. -
@shbatm
will note that down thanks! -
@Desertswing No idea what that did but it worked, just need to make it show the weather as that seems to have gone away