Example .service Files

Templates for systemd service files that work with Tellor Layer

Tellor Layer requires two separate services that use two different binaries: layerd and reporterd.

For running the layer node client (layerd):

[Unit]
Description=Layer Node Client
After=network-online.target

[Service]
User=USERNAME
Group=USERNAME
WorkingDirectory=/home/USERNAME/layer
ExecStart=/home/USERNAME/path/to/layerd start --home /home/USERNAME/.layer --keyring-backend="test" --key-name=ACCOUNT_NAME  --api.enable --api.swagger
Restart=always
RestartSec=10

[Install]
WantedBy=multi-user.target

For running the reporter daemon (reporterd):

[Unit]
Description=Layer Reporter
After=network-online.target

[Service]
User=USERNAME
Group=USERNAME
WorkingDirectory=/home/USERNAME/403/layer
ExecStart=/home/path/to/layer/daemons/bin/reporterd --chain-id layertest-4 --grpc-addr 0.0.0.0:9090 --from ACCOUNT_NAME --home /home/USERNAME/.layer --keyring-backend test --node tcp://0.0.0.0:26657
Restart=always
RestartSec=10
Environment="ETH_RPC_URL=https://your.sepolia.rpc_url"
Environment="ETH_RPC_URL_PRIMARY=https://your.sepolia.rpc_url"
Environment="ETH_RPC_URL_FALLBACK=https://your.sepolia.fallback_rpc_url"
Environment="TOKEN_BRIDGE_CONTRACT=0x5acb5977f35b1A91C4fE0F4386eB669E046776F2"
Environment="WITHDRAW_FREQUENCY=3600"
Environment="REPORTERS_VALIDATOR_ADDRESS=tellorvaloper1_your_address"

[Install]
WantedBy=multi-user.target

Last updated