babylonchain / finality-provider

A peripheral program run by the finality providers
Other
16 stars 28 forks source link

Add a `fpd stop` command #215

Open vitsalis opened 9 months ago

vitsalis commented 9 months ago

Someone should be able to reload the finality provider daemon if they want to update the values of their config

fuleru commented 5 months ago

Directly use the systemctl standard service format, for reference only


[Unit]
Description=FPD daemon
After=network-online.target

[Service]
User=root
ExecStart=/root/go/bin/fpd start
Restart=always
RestartSec=10
LimitNOFILE=infinity

Environment="DAEMON_NAME=fpd"
Environment="DAEMON_HOME=/root/.fpd"
Environment="DAEMON_RESTART_AFTER_UPGRADE=true"
Environment="DAEMON_ALLOW_DOWNLOAD_BINARIES=false"

[Install]
WantedBy=multi-user.target