Freebsd rc usage
From wikinotes
Enabling and Configuring Services
All daemons are enabled, and primarily configured in the
/etc/rc.conf
. rcvars (variables which can be overridden in rc.conf) are listed in the program's rcscript/usr/local/etc/rc.d
.# /etc/rc.conf: sshd_enable="YES" sshguard_enable="YES" sshguard_whitelist="/etc/sshguard.whitelist"You can also use
sysrc
to programmatically access and control these variables, even append etc.sysrc sshd_enable # print current value sysrc sshd_enable=YES # assign new value
Managing Services
service sshguard start service sshguard stop service sshguard restart