Check that "-L name" lists "rc.conf.d" entries for named "rc.d" script:
$ sysrc -L ipfw
> /etc/rc.conf.d/ipfw /usr/local/etc/rc.conf.d/ipfw
$ sysrc -L 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 -L nosuchservice
> (no output)
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
> foo: -> bar
$ sysrc -s ipfw foo
> foo: bar
$ sysrc -Fs ipfw 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
Check that "-L" produces a list of all usable configuration files:
$ sysrc -L
> (long output)
Check that "-Lv" produces a list of services and their configuration files:
$ sysrc -Lv
> (long output)
Check that "-EL" produces a list of existing configuration files:
$ sysrc -Lv
> (depends on system)
Check that "-ELv" shows all existing configuration files and what uses them:
$ sysrc -ELv
> (depends on system)