sysrc mysql_enable ppp_profile
mysql_enable: YES
ppp_profile: telco
sysrc -A | grep postgresql
.That's a key piece of info people miss: most/all of the service scripts I've looked at (the ones from base plus whatever I installed) the variables and their possible values are usually listed and commented.i don't think so
you have to inspect the service launch script
% doas rcctl getdef postgresql
postgresql_class=daemon
postgresql_flags=-D /var/postgresql/data -w -l /var/postgresql/logfile
postgresql_logger=
postgresql_rtable=0
postgresql_timeout=30
postgresql_user=_postgresql
~$./rcxxx.sh isc-dhcpd
dhcpd_chroot_enable=NO
dhcpd_chrootdir=''
dhcpd_chuser_enable=no
dhcpd_conf=/usr/local/etc/dhcpd.conf
dhcpd_confdir=/usr/local/etc
dhcpd_conffile=/usr/local/etc/dhcpd.conf
dhcpd_devfs_enable=NO
dhcpd_leasesdir=/var/db
dhcpd_leasesfile=/var/db/dhcpd.leases
dhcpd_piddir=/var/run
dhcpd_pidfile=/var/run/dhcpd.pid
dhcpd_withumask=022
#!/bin/sh
test ".$INNERCALL" = .YES || {
export INNERCALL=YES
cat "$0" | /bin/sh -s -c : /usr/local/etc/rc.d/$1 "$@"
exit $?
}
_rc_subr_loaded="YES"
run_rc_command()
{
}
load_rc_config()
{
}
checkyesno()
{
return 1
}
[ $(id -u) -eq 0 ] && echo "Don't run $0 as root" && exit 1
set -- /usr/local/etc/rc.d/$1
. $1
IFS="
"
for line in $(set)
do
left=${line%%=*}
right=${line#*=}
[ "$left" = "${name}_enable" ] && continue
trunc=${left#$name}
[ "$trunc" != "$left" ] && echo $line
done
IFS=$_IFS