IonSystems / tiberius-robot

Repository for all software modules used by Heriot-Watt University's Tiberius Robot.
1 stars 0 forks source link

Shutdown Daemon #9

Open camieac opened 8 years ago

camieac commented 8 years ago

A background process that monitors a GPIO pin and Ethernet port for a shutdown signal. The daemon will then execute shutdown -h now to provide a soft power off.

This daemon is to provide a simple interface for safely turning off a Raspberry Pi.

Once this daemon is implemented, a new shutdown switch could be designed for Tiberius, that sends out a shutdown signal when the off button id pressed, and then cuts power after a the Pi's have been shut down.

The shutdown daemon will also allow other Raspberry Pi's to shutdown others via the TCP interface. This will be useful to the diagnostics module, because it will be able to shutdown faulty devices. This will also be handy for power saving, e.g. The batteries are running low and Tiberius is lost, the power management system can shutdown all unnecessary Pi's to save power for the distress beacon.

camieac commented 8 years ago

Shell solution : https://github.com/jimherd/rpi_scripts/blob/master/GPshutdown.sh