23 lines
605 B
Text
23 lines
605 B
Text
|
|
[Unit]
|
||
|
|
Description=DATUM Gateway - Bitcoin Mining Gateway
|
||
|
|
Documentation=https://github.com/OCEAN-xyz/datum_gateway
|
||
|
|
After=network.target bitcoind.service
|
||
|
|
Wants=bitcoind.service
|
||
|
|
|
||
|
|
[Service]
|
||
|
|
User={{ datum_gateway_user }}
|
||
|
|
Group={{ datum_gateway_group }}
|
||
|
|
Type=simple
|
||
|
|
ExecStart={{ datum_gateway_bin_path }} --config {{ datum_gateway_config_dir }}/config.json
|
||
|
|
Restart=on-failure
|
||
|
|
RestartSec=10
|
||
|
|
StandardOutput=journal
|
||
|
|
StandardError=journal
|
||
|
|
|
||
|
|
# Prevent config from being read by other users
|
||
|
|
ReadWritePaths={{ datum_gateway_log_dir }}
|
||
|
|
ReadOnlyPaths={{ datum_gateway_config_dir }}
|
||
|
|
|
||
|
|
[Install]
|
||
|
|
WantedBy=multi-user.target
|