Skip to main content

Module platform

Module platform 

Source
Expand description

Which OS family this box is, and the commands that mean the same thing on each.

Guidance that names a package or a service is only useful if it names the right one, and the three families flodl targets disagree on all of it: the ssh unit is ssh on Debian and sshd on RHEL, a non-standard ssh port needs an SELinux label on RHEL and nothing on Debian, Ubuntu hands the ssh listener to a socket unit that ignores the Port directive, and macOS has no systemd at all.

Everything here is a pure function of the family, so the whole table is testable from any host. Platform::detect is the only impure entry point.

Enumsยง

Platform
Where a command is being suggested to run.