I am not really sure where to post this question, so the Lounge seems like a good place to start.
I built a Raspberry Pi computer to run Homebridge. It works great. I am not quite sure why it works great considering I barely know what I am doing, but I can follow directions on the internet, and I somehow miraculously got it working. I can open my garage door from my Apple Watch via Siri. Life is good.
As the icing on the cake, I wanted Homebridge to auto-start in case my Raspberry Pi loses power and reboots. I learned about PM2 to manage auto-starts. I installed it. I configured it somehow. That works too!
I got as far as learning basic commands in PM2 so that I can stop Homebridge, update Homebridge to a latest build, and re-start Homebridge using PM2. It is not rocket science I suppose:
pm2 start homebridge
pm2 stop homebridge
I learned what these commands do also:
pm2 list
pm2 show homebridge
pm2 logs homebridge
But here is where I am lost. If I stop Homebridge in PM2, and re-start my Raspberry Pi, Homebridge starts again by itself when the Raspberry Pi reboots. Why is this? How do I stop Homebridge from starting on a reboot until such a time that I want to start it automatically again? Wouldn't pm2 stop Homebridge and keep it stopped even if I reboot?
Is there another command I don't know about? Sometimes I want to see Homebridge display all the text that it shown on boot-up of Homebridge and I don't know how to get that back now. I don't want to get rid of PM2 - I just want the option to turn it off for a reboot and then turn it back on.
I definitely need the ELI5 explanation - if anyone knows.
Thanks!