Upgrades
FreeBSD uses freebsd-update
utility to perform security updates and upgrading to releases. Instructions are on the FreeBSD Handbook.
Security Updates
freebsd-update fetch
freebsd-update install
Minor Version Updates
Check for current releases
Example for 12.2
; Update current version
freebsd-update fetch
freebsd-update install
; Upgrade kernel
freebsd-update upgrade -r 12.2-RELEASE
freebsd-update install
; Reboot
shutdown -r now
; Upgrade userland
freebsd-update install
; Remove old system libraries
freebsd-update install
; Reboot
shutdown-update install
Managing Services (init and rc)
lighttpd example
# enable startup
sudo sysrc lighttpd_enable=YES
# start
sudo service lighttpd start
# stop
sudo service lighttpd stop
# restart
sudo service lighttpd restart