OpenBSD 6.9 includes a new daemon_logger variable which may be set to automatically set the syslog facility that the process will write to. This lets us simplify our example service by avoiding the need to redefine the rc_start function. While here, update some of the default flags to more closely match what I now recommend. /var is too small for block data on many installations, so it is better to write all of the application data to the /home partition instead. This also fixes the comment for how to enable the service, since just defining the flags is not sufficient for this. |
||
|---|---|---|
| .. | ||
| services | ||
| dcr_tmux_simnet_setup.sh | ||
| README.md | ||
contrib
Overview
This consists of extra optional tools which may be useful when working with dcrd and related software.
Contents
Example Service Configurations
-
OpenBSD rc.d
Provides an examplerc.dscript for configuring dcrd as a background service on OpenBSD. It also serves as a good starting point for other operating systems that use the rc.d system for service management. -
Service Management Facility
Provides an example XML file for configuring dcrd as a background service on illumos. It also serves as a good starting point for other operating systems that use use SMF for service management. -
systemd
Provides an example service file for configuring dcrd as a background service on operating systems that use systemd for service management.
Simulation Network (--simnet) Preconfigured Environment Setup Script
The dcr_tmux_simnet_setup.sh script provides a
preconfigured simnet environment which facilitates testing with a private test
network where the developer has full control since the difficulty levels are low
enough to generate blocks on demand and the developer owns all of the tickets
and votes on the private network.
The environment will be housed in the $HOME/dcrdsimnetnodes directory by
default. This can be overridden with the DCR_SIMNET_ROOT environment variable
if desired.
See the full Simulation Network Reference for more details.