service -e doesn't really sort does it? the cool tip is slightly off

From: Dennis Clarke <dclarke_at_blastwave.org>
Date: Sat, 16 Jan 2021 23:28:48 +0000
Saw this pop up :

rhea$ su - admsys
Password:
If you want to get a sorted list of all services that are started when
FreeBSD boots,
enter "service -e".

                -- Lars Engels <lme_at_FreeBSD.org>
admsys_at_rhea:~ $

To which I thought "sorted? really?"

amalthea# cd
amalthea# service -e
/etc/rc.d/rctl
/etc/rc.d/hostid
/etc/rc.d/zpool
/etc/rc.d/zvol
/etc/rc.d/hostid_save
/etc/rc.d/zfsbe
/etc/rc.d/zfs
/etc/rc.d/cleanvar
/etc/rc.d/kldxref
/etc/rc.d/ip6addrctl
/etc/rc.d/mixer
/etc/rc.d/devmatch
/etc/rc.d/netif
/etc/rc.d/resolv
/etc/rc.d/devd
/etc/rc.d/motd
/etc/rc.d/newsyslog
/etc/rc.d/virecover
/etc/rc.d/dmesg
/etc/rc.d/gptboot
/etc/rc.d/syslogd
/etc/rc.d/savecore
/etc/rc.d/rpcbind
/etc/rc.d/mountd
/etc/rc.d/nfsd
/etc/rc.d/ntpd
/etc/rc.d/cron
/etc/rc.d/sshd
/etc/rc.d/sendmail
/etc/rc.d/bgfsck
/usr/local/etc/rc.d/smartd
amalthea#

Nope. That doesn't look sorted. Unless the sorted means "order in which
they start" perhaps. So maybe take out the word "sorted". Either that or
insert the "started order" as the manpage claims  :

root_at_rhea:/usr/src/freebsd-src # diff -u
usr.bin/fortune/datfiles/freebsd-tips.orig
usr.bin/fortune/datfiles/freebsd-tips
--- usr.bin/fortune/datfiles/freebsd-tips.orig  2021-01-15
00:37:37.863506000 +0000
+++ usr.bin/fortune/datfiles/freebsd-tips       2021-01-16
07:46:57.335803000 +0000
_at__at_ -517,7 +517,7 _at__at_

                -- Lars Engels <lme_at_FreeBSD.org>
 %
-If you want to get a sorted list of all services that are started when
FreeBSD boots,
+If you want to get a list of all services that are started when FreeBSD
boots,
 enter "service -e".

                -- Lars Engels <lme_at_FreeBSD.org>
root_at_rhea:/usr/src/freebsd-src #

Sorry for being all OCD here. Perhaps it should say sorted in the order
in which they were started. Something like that.


-- 
Dennis Clarke
RISC-V/SPARC/PPC/ARM/CISC
UNIX and Linux spoken
GreyBeard and suspenders optional
Received on Sat Jan 16 2021 - 22:29:33 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:41:26 UTC