Test will display result in red if no boot loader password set and if
server or workstation role was set. Cosmetic change for log text, one
instead of two log texts.
Test displays result in yellow if using personal machine role as
suggestion for typical users.
With this patch, a run on my machine returns:
[+] Initializing program
------------------------------------
- Detecting OS... [ DONE ]
---------------------------------------------------
Program version: 2.1.1
Operating system: FreeBSD
Operating system name: FreeBSD
...
[+] Boot and services
------------------------------------
- Service Manager [ bsdrc ]
On all supported FreeBSD releases, the service(8) program can be used to
discover which services are running. This program has been added to the test
for binaries. If available, it will be used to test for services. If not, the
original code that parses /etc/rc.conf is used.
On my system, the following information is produced in the logfile:
[19:51:22] Performing test ID BOOT-5165 (Check for FreeBSD boot services)
[19:51:22] Searching for services at startup (service)
[19:51:23] Found service (service/rc.conf): bgfsck
[19:51:23] Found service (service/rc.conf): cleanvar
[19:51:23] Found service (service/rc.conf): cron
[19:51:23] Found service (service/rc.conf): cupsd
[19:51:23] Found service (service/rc.conf): dbus
[19:51:23] Found service (service/rc.conf): devd
[19:51:23] Found service (service/rc.conf): dmesg
[19:51:23] Found service (service/rc.conf): dnsmasq
[19:51:23] Found service (service/rc.conf): gptboot
[19:51:23] Found service (service/rc.conf): hostid
[19:51:23] Found service (service/rc.conf): hostid_save
[19:51:23] Found service (service/rc.conf): ip6addrctl
[19:51:23] Found service (service/rc.conf): ipfw
[19:51:23] Found service (service/rc.conf): mixer
[19:51:23] Found service (service/rc.conf): motd
[19:51:23] Found service (service/rc.conf): newsyslog
[19:51:23] Found service (service/rc.conf): nginx
[19:51:23] Found service (service/rc.conf): openntpd
[19:51:23] Found service (service/rc.conf): postfix
[19:51:23] Found service (service/rc.conf): powerd
[19:51:23] Found service (service/rc.conf): sendmail
[19:51:23] Found service (service/rc.conf): smartd
[19:51:23] Found service (service/rc.conf): syslogd
[19:51:23] Found service (service/rc.conf): virecover
[19:51:23] Found 24 services/options to run at startup
The report shows:
[+] Boot and services
------------------------------------
- Service Manager [ UNKNOWN ]
- Checking presence FreeBSD loader [ FOUND ]
- Checking services at startup (service/rc.conf) [ DONE ]
Result: found 24 services/options set