I have a simple init.d bootscript that runs a python script checking if the shutdown button on my Pi (via GPIO)
was pressed, and if so, sends a signal on another GPIO to cut the power to my Pi, once it is safe to do so.
It used to work with my previous Raspbian installation, but after I updated to the latest Raspbian image, 4.4.21-v7,
it no longer works.
If I start the service manually though after boot, it works correctly.
I put the script in /etc/init.d/myscript and chmod 755 it. start/stop all work when done manually.
I also did update-rc.d myscript defaults.
Yet after reboot, it does not work (although it previously did, with the previous raspbian image)
Has anything changed in the latest Raspbian release? Should I use a systemd unit file instead from now on?
Thanks for your feedback!