This is an rc.d
file for FreeBSD that runs weewx as a service.
- Copy
weewx
to/usr/local/etc/rc.d
, creating the directory if necessary. - Enable the service with
sysrc weewx_enable="YES"
. - Configure any necessary variables in
/etc/rc.conf
. For example, set theweewx
configuration file by addingweewx_config_file=/path/to/config
to/etc/rc.conf
. - Start the
weewx
service withservice weewx start
.