Skip to content
Snippets Groups Projects
Commit 0fcb69f1 authored by Benjamin Gallois's avatar Benjamin Gallois Committed by Hugo Trentesaux
Browse files

upgrade oracle timer service (!296)

parent e3298309
No related branches found
No related tags found
1 merge request!296Upgrade Oracle Timer Service
Pipeline #39342 waiting for manual action
...@@ -22,5 +22,5 @@ ...@@ -22,5 +22,5 @@
A Smith node needs to be installed. A Smith node needs to be installed.
1. Change the default configuration by modifying `/etc/duniter/env_file`. 1. Change the default configuration by modifying `/etc/duniter/env_file`.
2. Start the service: `sudo systemctl start distance-oracle.timer`. 2. Start the service: `sudo systemctl start distance-oracle.service`.
3. Enable the service at startup: `sudo systemctl enable distance-oracle.timer`. 3. Enable the service at startup: `sudo systemctl enable distance-oracle.service`.
...@@ -5,6 +5,6 @@ After=duniter-smith.service ...@@ -5,6 +5,6 @@ After=duniter-smith.service
[Service] [Service]
EnvironmentFile=/etc/duniter/env_file EnvironmentFile=/etc/duniter/env_file
ExecStart=/usr/bin/duniter2 distance-oracle --evaluation-result-dir ${BASE_PATH}/chains/${DUNITER_CHAIN_NAME}/distance --rpc-url ${ORACLE_RPC_URL} --log ${ORACLE_LOG_LEVEL} ExecStart=/usr/bin/duniter2 distance-oracle --evaluation-result-dir ${BASE_PATH}/chains/${DUNITER_CHAIN_NAME}/distance --rpc-url ${ORACLE_RPC_URL} --interval ${ORACLE_INTERVAL} --log ${ORACLE_LOG_LEVEL}
User=duniter User=duniter
Group=duniter Group=duniter
[Unit]
Description=Duniter distance oracle timer.
[Timer]
EnvironmentFile=/etc/duniter/env_file
OnBootSec=1min
OnUnitActiveSec=2min
[Install]
WantedBy=multi-user.target
...@@ -36,6 +36,11 @@ BASE_PATH=/home/duniter/.local/share/duniter ...@@ -36,6 +36,11 @@ BASE_PATH=/home/duniter/.local/share/duniter
# Default: ws://127.0.0.1:9944 for a local WebSocket RPC server. # Default: ws://127.0.0.1:9944 for a local WebSocket RPC server.
ORACLE_RPC_URL=ws://127.0.0.1:9944 ORACLE_RPC_URL=ws://127.0.0.1:9944
# Interval in seconds at which the oracle is run.
# This should not exceed the evaluation period of the blockchain.
# Default: 600 seconds
ORACLE_INTERVAL=600
# Determines the log level for the Oracle. # Determines the log level for the Oracle.
# Options include 'error', 'warn', 'info', 'debug', 'trace'. # Options include 'error', 'warn', 'info', 'debug', 'trace'.
# 'info' is a good default that provides useful runtime information without too much detail. # 'info' is a good default that provides useful runtime information without too much detail.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment