Check that `-lDs name' lists `rc.conf.d' entries for named `rc.d' script:
$ sysrc -lDs ipfw
> /etc/rc.conf.d/ipfw /usr/local/etc/rc.conf.d/ipfw
$ sysrc -lDs dhclient
> /etc/rc.conf.d/dhclient /usr/local/etc/rc.conf.d/dhclient \
> /etc/rc.conf.d/network /usr/local/etc/rc.conf.d/network
$ sysrc -lDs nosuchservice
>
Check that `-ls name' lists `rc.conf' and `rc.conf.d' entries:
$ sysrc -ls ipfw
> /etc/rc.conf /etc/rc.conf.local \
> /etc/rc.conf.d/ipfw /usr/local/etc/rc.conf.d/ipfw
$ sysrc -ls dhclient
> /etc/rc.conf /etc/rc.conf.local \
> /etc/rc.conf.d/dhclient /usr/local/etc/rc.conf.d/dhclient \
> /etc/rc.conf.d/network /usr/local/etc/rc.conf.d/network
$ sysrc -ls nosuchservice
> /etc/rc.conf /etc/rc.conf.local
Check that `-l' lists `rc.conf' entries:
$ sysrc -l
> /etc/rc.conf /etc/rc.conf.local
Check that `-s name variable' is able to get settings from `rc.conf.d':
$ sysrc -f /etc/rc.conf.d/ipfw foo=bar
$ sysrc -s ipfw foo
> foo: -> bar
$ sysrc -s ipfw foo
> foo: bar
$ sysrc -s ipfw -F foo
foo: /etc/rc.conf.d/ipfw
Check that `-s name variable=value' is able to put settings in `rc.conf.d':
$ sysrc -vs ipfw bar=baz
> /etc/rc.conf.d/ipfw: bar: -> baz