Here’s a photo of the Raspberry Pi OctoPrint/OctoPi server I built for my RepStrap. I added switches for Shutdown and Restart. Now, I can do an orderly shutdown simply by pressing a button. And, I can start the server from a shutdown by pressing the Restart button. Restart was easy as there are pins for that on the Raspberry Pi. Shutdown is handled by bridging two pins on the GPIO header and adding some code to watch those pins and issue a “shutdown -h now” command.
