Some checks failed
Deploy to Phoenix / deploy (push) Has been cancelled
Made-with: Cursor
34 lines
1.3 KiB
Plaintext
34 lines
1.3 KiB
Plaintext
# Copy to /etc/systemd/system/chain138-pmm-mesh-automation.service (or ~/.config/systemd/user/)
|
|
# Adjust paths and EnvironmentFile to your host.
|
|
#
|
|
# sudo cp chain138-pmm-mesh-automation.service.example /etc/systemd/system/chain138-pmm-mesh-automation.service
|
|
# sudo systemctl daemon-reload
|
|
# sudo systemctl enable --now chain138-pmm-mesh-automation.service
|
|
# journalctl -u chain138-pmm-mesh-automation -f
|
|
|
|
[Unit]
|
|
Description=Chain 138 PMM mesh — oracle/keeper/WETH poll every 6s
|
|
After=network-online.target
|
|
Wants=network-online.target
|
|
|
|
[Service]
|
|
Type=simple
|
|
User=YOUR_UNIX_USER
|
|
WorkingDirectory=/ABSOLUTE/PATH/TO/proxmox/smom-dbis-138
|
|
Environment=PMM_MESH_INTERVAL_SEC=6
|
|
Environment=MESH_CAST_GAS_PRICE=2gwei
|
|
# Set to 0 until ETH-USD oracle allows your key as transmitter (see update-oracle-price.sh output).
|
|
Environment=ENABLE_MESH_ORACLE_TICK=1
|
|
Environment=ENABLE_MESH_KEEPER_TICK=1
|
|
Environment=ENABLE_MESH_PMM_READS=1
|
|
Environment=ENABLE_MESH_WETH_READS=1
|
|
# Prefer EnvironmentFile over committing secrets:
|
|
EnvironmentFile=-/ABSOLUTE/PATH/TO/proxmox/smom-dbis-138/.env
|
|
# Required in .env: PRIVATE_KEY, AGGREGATOR_ADDRESS; recommended: PRICE_FEED_KEEPER_ADDRESS (see ORACLE_AND_KEEPER_CHAIN138.md)
|
|
ExecStart=/bin/bash /ABSOLUTE/PATH/TO/proxmox/smom-dbis-138/scripts/reserve/pmm-mesh-6s-automation.sh
|
|
Restart=always
|
|
RestartSec=3
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|