> your solution with bash scripting looks indeed promising.
Thanks. Simple is best
> Did you check if it causes any measurable load on cpu?
"ps -aux" reports as below:
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
root 138 2.0 0.1 3364 812 ? S 20:05 0:40 /bin/sh /usr/bin/shutdownbt_led.sh
This means this daemon script affects little the performance of the whole system, I think.
> BTW, to start (again), you have to unplug and plug in the power source?
Right, but I installed another paddle switch for turning the power on/off.
For restarting the Pi, I just turn off the switch and then turn it on again.

- raspi.jpg (118.72 KiB) Viewed 3817 times
The script, switch, and LED work well on not only Rune but also Volumio and moode audio
I didn't test on Archphile -- maybe my todo
PS. An IR remote controller also works well on Rune, Volumio, and moode. I can also shutdown (and reboot) the Pi from the remote controller.
yjo