Exempt only the daemons a fresh machine was measured to run from counting as in use (hq ADR 0101)
This commit is contained in:
@@ -12,14 +12,18 @@ import (
|
||||
)
|
||||
|
||||
// quiet are the processes every fresh machine runs that serve nobody: name resolution (whose
|
||||
// link-local resolver listens on TCP as well as UDP, on every address), address configuration and
|
||||
// time. ss names a process by its first fifteen characters, so both spellings are here. Measured
|
||||
// on a freshly installed lab machine (testdata/fresh-machine-listeners.txt): these and nothing else.
|
||||
// link-local resolver listens on TCP as well as UDP, on every address) and the network manager's
|
||||
// address configuration. ss names a process by its first fifteen characters, so both spellings are
|
||||
// here.
|
||||
//
|
||||
// **Only what the measurement found** (novox/hq ADR 0101): these two hold every listener on a
|
||||
// freshly installed lab machine (testdata/fresh-machine-listeners.txt) and nothing else does. A
|
||||
// daemon joins this list with a measurement of a fresh machine that holds it, never by guess — a
|
||||
// time client or an address-configuration client listening on a machine that does not run one as
|
||||
// standard is something somebody installed, and that is a machine in use.
|
||||
var quiet = map[string]bool{
|
||||
"systemd-resolved": true, "systemd-resolve": true,
|
||||
"systemd-networkd": true, "systemd-network": true,
|
||||
"systemd-timesyncd": true, "systemd-timesyn": true,
|
||||
"dhcpcd": true,
|
||||
}
|
||||
|
||||
// InUse says what makes this machine a machine in use (novox/hq ADR 0100): every running container
|
||||
|
||||
Reference in New Issue
Block a user