service -e doesn't really sort does it? the cool tip is slightly off
Dennis Clarke
dclarke at blastwave.org
Sat Jan 16 23:29:33 UTC 2021
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
@@ -517,7 +517,7 @@
-- 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
More information about the freebsd-current
mailing list