moonstream/nodebalancer/deploy/nodebalancer.service

20 wiersze
517 B
INI

[Unit]
Description=Load balancer for blockchain nodes
After=network.target
StartLimitIntervalSec=300
StartLimitBurst=3
[Service]
WorkingDirectory=/home/ubuntu/api/nodebalancer
EnvironmentFile=/home/ubuntu/nodebalancer-secrets/app.env
Restart=on-failure
RestartSec=15s
ExecStart=/home/ubuntu/api/nodebalancer/nodebalancer server \
-host "${AWS_LOCAL_IPV4}" \
-port 8544 \
-healthcheck \
-config /home/ubuntu/.nodebalancer/config.json
SyslogIdentifier=nodebalancer
[Install]
WantedBy=multi-user.target