PiSugar / pisugar-power-manager-rs

PiSugar Power Manger in rust language
https://www.pisugar.com/
GNU General Public License v3.0
130 stars 15 forks source link

Auto-Shutdown Notify/Custom Command #33

Open dipunm opened 3 years ago

dipunm commented 3 years ago

My pi setup requires a specific shutdown command.

I saw that there is a wall announcement made to all logged in users if there is a delay set, however I wish to be able to run a command before shutdown or ideally use a custom shutdown command.

AFAIK, I can't observe wall messages programatically and react to it. The machine runs headless, so it doesn't always have a user logged in.