Question 1
Topic: BSD Installation and Software Management
Skill tested: Configures FreeBSD startup services and kernel parameters using persistent system settings.
A small hosting provider is standardizing FreeBSD servers. Each server must start the SSH daemon after reboot, while a kernel tunable required by the storage driver must also be applied persistently. Administrators want changes to survive upgrades where practical and avoid editing generated or transient files. Which approach best meets both requirements?
`sysrc` manages FreeBSD's rc configuration, and `sshd_enable=YES` causes the rc system to start sshd during normal boot. Persistent runtime kernel tunables can be placed in `/etc/sysctl.conf`, which is applied during startup. `/etc/rc.local` is not the preferred mechanism for enabling a standard rc service; `onestart` and an interactive `sysctl` command are not persistent. `/boot/loader.conf` is read by the boot loader for loader tunables, not for starting rc services, so it cannot satisfy both requirements.