Working great with your last suggestion! A++++
-- If you're curious about why I needed this project, here's a bit of info:
I have a Raspberry PI that runs a simple software to control another device, and once a month or so, the RPI freezes, for an unknown reason. My friend who's a programmer looked into this issue and couldn't find any software bug, and we couldn't reproduce the error since it only happens once in a blue moon... we just don't know what triggers this issue. Every time the RPI would freeze, I had to go to the other room to physically reset its power. It was annoying!
Now with this circuit, the MOSFET keeps the RPI power on for as long as the RPI sends a reset pulse signal, indicating to me that the RPI is alive. If the software ever freezes again, the RPI will stop sending the reset pulse signal, and after 5 minutes or so the power will automatically reset! Simple, but VERY helpful! Thanks again my friend!