Skip to content

Sunil Nimmagadda

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.

Fallback

An excerpt from ftp(1)

"-A Force active mode FTP.  By default, ftp will try to use passive
mode FTP and fall back to active mode if passive is not supported
by the server.  This option causes ftp to always use an active
connection."

The modes and commands that start them…

Active: PORT, LPRT, EPRT
Passive: PASV, LPSV, EPSV