pimoroni / clean-shutdown

Python daemon to watch a GPIO pin and trigger a clean shutdown.
MIT License
125 stars 40 forks source link

Disabling cleanshutd cannot be commented out #19

Closed ferrix closed 5 years ago

ferrix commented 5 years ago

Due to the way the disable flag is detected, commenting it out (in instructions for example), will still disable the daemon.

https://github.com/pimoroni/clean-shutdown/blob/8dde2824019674b75b208887c198ad80f01aa4a9/daemon/usr/bin/cleanshutd#L22

Gadgetoid commented 5 years ago

Good spot, thanks for pointing it out. Looks like I should look into testing and merging #15 which appears to fix this issue.

Gadgetoid commented 5 years ago

Fixed in #15 - thank you all!