pub/sub POC for powerd(8)
While lurking on the #netbsd IRC channel, a discussion happened about
the need of a publish/subscribe mechanism for power events.
powerd(8), a daemon that monitors sysmon(4) events (via /dev/power
)
and responds by spawning user specified shell scripts against those
events could be a potential candidate to plug it in. Any userland
subscribers interested in power events could subscribe, get notified
and respond directly.
29 May 2024