Which services do you run ?

I like to try out new services.
My /etc/rc.conf,
Code:
devd_enable="YES"
fsck_y_enable="YES"     # Set to YES to do fsck -y if the initial preen fails.
rtsold_enable="YES"
ip6addrctl_enable="YES"            # Set to YES to enable default address selection
accounting_enable="YES"
devfs_enable="YES"
dbus_enable="YES"
hald_enable="YES"
jail_enable="YES"
savecore_enable="YES"
zabbix_server_enable="yes"
zabbix_agentd_enable="yes"
php_fpm_enable="yes"
nginx_enable="yes"
node_exporter_enable="YES"
prometheus_enable="YES"
grafana_enable="YES"
influxd_enable="YES"
telegraf_enable="YES"
apache24_enable="YES"
minidlna_enable="YES"
syslogd_enable="YES"
cron_enable="YES"
snmpd_enable="YES"
snmp_exporter_enable="YES"
mysql_enable="YES"
postgresql_enable="yes"
ntpdate_enable="YES"
ntpd_enable="YES"
 
Rich (BB code):
% cat /etc/rc.conf | grep enable
clear_tmp_enable="YES" # default
powerd_enable="YES" # default
moused_nondefault_enable="NO" # default
zfs_enable="YES" # must-have for me
dbus_enable="YES" # good for desktop purpose
nginx_enable="YES" # Poudriere monitoring
 
Code:
> fgrep _enable /etc/rc.conf
zfs_enable="YES"
sshd_enable="YES"
motd_enable="YES"
ntpd_enable="YES"
lpd_enable="YES"
pf_enable="YES"
gateway_enable="YES"
sendmail_enable="NO"
sendmail_submit_enable="NO"
sendmail_outbound_enable="NO"
sendmail_msp_queue_enable="NO"
named_enable="YES"
smartd_enable="YES"
apcupsd_enable="YES"
dhcpd_enable="YES"
apache24_enable="YES"
eqmon_enable="YES"
tunnelext_enable="YES"
 
Code:
cat /etc/rc.conf | grep enable
clear_tmp_enable="YES"
local_unbound_enable="YES"
sshd_enable="YES"
moused_enable="YES"
ntpdate_enable="yes"
cupsd_enable="YES"
firewall_enable="YES"
local_unbound_enable="YES"
dbus_enable="YES"
linux_enable="YES"
fsck_y_enable="YES"
cupsd_enable="YES"
lightdm_enable="YES"
avahi_daemon_enable="YES"
webcamd_enable="YES"
postfix_enable="YES"
sendmail_enable="NONE"
apcupsd_enable=YES
 
Code:
cat /etc/rc.conf | grep enable
clear_tmp_enable="YES"
local_unbound_enable="YES"
sshd_enable="YES"
moused_enable="YES"
ntpdate_enable="yes"
cupsd_enable="YES"
firewall_enable="YES"
local_unbound_enable="YES"
dbus_enable="YES"
linux_enable="YES"
fsck_y_enable="YES"
cupsd_enable="YES"
lightdm_enable="YES"
avahi_daemon_enable="YES"
webcamd_enable="YES"
postfix_enable="YES"
sendmail_enable="NONE"
apcupsd_enable=YES
Oops, redundant local_unbound
 
home server (FreeBSD 14.3-RELEASE-p1)
Code:
# fgrep _enable /etc/rc.conf
microcode_update_enable="YES"
zfs_enable="YES"
powerd_enable="YES"
clear_tmp_enable="YES"
moused_enable="YES"
named_enable="YES"
ntpd_enable="YES"
sshd_enable="YES"
ddclient_enable="YES"
apache24_enable="YES"
cupsd_enable="YES"
minidlna_enable="YES"

XFCE desktop [VirtualBox guest] (FreeBSD 14.3-RELEASE-p1)
Code:
# fgrep _enable /etc/rc.conf
microcode_update_enable="YES"
clear_tmp_enable="YES"
moused_enable="YES"
zfs_enable="YES"
vboxservice_enable="YES"
vboxguest_enable="YES"
sshd_enable="YES"
ntpd_enable="YES"
samba_server_enable="YES"
wssd_enable="YES"
avahi_daemon_enable="YES"
dbus_enable="YES"
lightdm_enable="YES"
 
.
For the sake of completeness,
cat /etc/rc.conf | grep _enable | grep -i YES
Code:
dumpon_enable="YES"
devd_enable="YES"
zpool_enable="YES"
zfs_enable="YES"        # Automaticly mount zfs filesystems
fsck_y_enable="YES"     # Set to YES to do fsck -y if the initial preen fails.
rtsold_enable="YES"
ip6addrctl_enable="YES"            # Set to YES to enable default address selection
accounting_enable="YES"
devfs_enable="YES"
dbus_enable="YES"
#hald_enable="YES"
jail_enable="YES"
cron_enable="YES"
ntpdate_enable="YES"
ntpd_enable="YES"
clear_tmp_enable="YES"   # Clear /tmp at startup.
zabbix_server_enable="yes"
zabbix_agentd_enable="yes"
node_exporter_enable="YES"
prometheus_enable="YES"
grafana_enable="YES"
influxd_enable="YES"
telegraf_enable="YES"
snmp_exporter20_enable="YES"
blackbox_exporter_enable="YES"
postgresql_enable="yes"
mysql_enable="YES"
php_fpm_enable="yes"
nginx_enable="yes"
apache24_enable="YES"
savecore_enable="YES"
microcode_update_enable="YES"
syslogd_enable="YES"
avahi_daemon_enable="YES"
snmpd_enable="YES"
minidlna_enable="YES"
local_unbound_enable="YES"
cupsd_enable="YES"
 
Code:
[19:08][fmc000@tu45b-freebsd ~]$ grep -i enable /etc/rc.conf|grep -i yes|grep -v ^#
clear_tmp_enable="YES"
ntpd_enable="YES"
powerd_enable="YES"
zfs_enable="YES"
dbus_enable="YES"
zrepl_enable="YES"
webcamd_enable="YES"
mixer_enable="YES"
lightdm_enable="YES"
[19:09][fmc000@tu45b-freebsd ~]$

Very few things running here. BTW, I will never understand why a lot of people "cat" a file and then pipes it to "grep" instead of "grepping" the file directly :)
 
[…] I will never understand why a lot of people "cat" a file and then pipes it to "grep" instead of "grepping" the file directly :)
To be fair I used to do it, too. 🚂 It reveals your line of thought: “First, I need to open the file.” ⇒ Let’s write this down now. Specifying the pathname at the end of the command line is arguably “unintuitive”.​
[…] These are enabled by default.
Holy carp, how’d you spot this? It wouldn’t’ve crossed my mind in a million years. 🚁 To show deviations from the default (/etc/defaults/rc.conf) you can use sysrc(8), the advantage being that it takes account of any /etc/rc.conf.d/*, too. (My setup uses service‐specific *.conf files.)​
Bash:
sysrc -a | egrep '_enable: ([Yy][Ee][Ss]|[Tt][Rr][Uu][Ee]|[Oo][Nn]|1)$' # cmp. checkyesno in /etc/rc.subr
However, the question​
Which services do you run ?
is actually answered with service(8)
Bash:
service -e # just a list of enabled services, not necessarily currently running
presuming that you ran all your services on one bare‐metal machine, though. 🚠
I like to try out new services. […]
Frankly, this just sounds dumb. Don’t run services you don’t need. 🛳️ If you really have excess energy/bandwidth, though, how about running a TOR exit node? Just to name an example.​
 
BTW, I will never understand why a lot of people "cat" a file and then pipes it to "grep" instead of "grepping" the file directly :)

There is actually a good reason for this, when writing complex shell pipelines. It makes for more readable code if you format them roughly like this (perhaps with some better indentation):

sh:
cat input.foo | \
grep bar | \
awk 'something' | \
...
blatz another operation | \
fish fred > \
    output.file

Like that one can see all the operations that are being done, and each line except the last starts with the name of the program being run.
 
Here's what's running on mine:
Code:
clear_tmp_enable: YES
dumpdev: NO
geli_autodetach: NO
ntpd_enable: YES
ntpdate_enable: YES
nut_enable: YES
nut_upsmon_enable: YES
pf_enable: YES
powerd_enable: YES
samba_server_enable: YES
smartd_enable: YES
smfand_enable: YES
sshd_enable: YES
sshguard_enable: YES
wsddn_enable: YES
zfs_enable: YES
zfsd_enable: YES

Everything's from the standard packages except for wsddn (author provides a standalone package file) and smfand (which is my own custom script for managing the fans on my machine).

Very few things running here. BTW, I will never understand why a lot of people "cat" a file and then pipes it to "grep" instead of "grepping" the file directly :)

I do it as well, because it's arguably more intuitive when chaining things together, as mentioned above.

# cat /etc/rc.conf | grep "YES" | sort

makes more sense to me than
# grep "YES" /etc/rc.conf | sort

What if I want to sort first?
# cat /etc/rc.conf | sort | grep "YES"

Whereas to do it the other way I have go look up the syntax of sort, because in 30 years of using UNIX and UNIX-like systems I can count on both hands the number of times I've ever ran sort without using a pipe. And don't get me started on the syntax for ln.
 
wayland tiles

Code:
wlans_iwm0="wlan0"
ifconfig_wlan0="WPA DHCP powersave"
ifconfig_ue0="SYNCDHCP"
create_args_wlan0="country US regdomain FCC"
moused_nondefault_enable="NO"
# Set dumpdev to "AUTO" to enable crash dumps, "NO" to disable
dumpdev="NO"
zfs_enable="YES"
clear_tmp_enable="YES"
microcode_update_enable="YES"
ntpd_enable="YES"
ntpd_sync_on_start="YES"
ntpd_oomprotect="YES"
background_dhclient="YES"
rtsold_enable="YES"
rtsold_flags="-aF"
syslogd_flags="-ss"
pf_enable="YES"
pflog_enable="NO"
sndiod_enable="YES"
kld_list="acpi_video i915kms"
dsbmd_enable="YES"
seatd_enable="YES"
dbus_enable="YES"
devfs_system_ruleset="desktop"
powerd_enable="YES"
powerd_flags="-a hiadaptive -b adaptive"
performance_cx_lowest="Cmax"
clamav_clamd_enable="YES"
clamav_freshclam_enable="YES"
cloned_interfaces="lo1"
ifconfig_lo1_name="bastille0"
vboxnet_enable="YES"
pcscd_enable="YES"
pcscd_flags="--disable-polkit"
hcsecd_enable="YES"
lightdm_enable="NO"
sddm_enable="NO"
gdm_enable="NO"
linux_enable="NO"

webcamd_enable="YES"
webcamd_0_flags="-d ugen0.3" # visible light camera
webcamd_1_flags="-d ugen0.2" # IR camera
icmp_bmcastecho="NO"
gateway_enable="NO"
 
Run a lot of different things on FreeBSD: ZFS, Poudriere, OpenNTPD, CoreDNS, bHyve, vm-bhyve (now part of base), jails, Monit, M/Monit, Caddy, Uptime Kuma, Prometheus, Syslog-NG, rsyslog, Apache, Nginx, NSD, Wireguard, pf, ipfw, netdata, syncthing, OpenLDAP, Postfix, SaltStack, acme.sh, Zeek, dnsdist and Step CA. Also run OPNSense firewalls. It is 1 big playground!
 
clear_tmp_enable="YES"
microcode_update_enable="YES"
zfs_enable="YES"
gateway_enable="YES"
powerd_enable="YES"
pflog_enable="YES"
pf_enable="YES"
ntpdate_enable="YES"
ntpd_enable="YES"
dbus_enable="YES"
devd_enable="YES"
webcamd_enable="YES"
avahi_daemon_enable="YES"
avahi_dnsconfd_enable="YES"
sndiod_enable="YES"
saned_enable="YES"
virtual_oss_enable="YES"
cupsd_enable="YES"
mixer_enable="YES"
nullfs_enable="YES"
bastille_enable="YES"
 
Back
Top