2021-12-20 15:01:37 +00:00
|
|
|
[Unit]
|
|
|
|
Description=Load balancer for blockchain nodes
|
|
|
|
After=network.target
|
|
|
|
StartLimitIntervalSec=300
|
|
|
|
StartLimitBurst=3
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
User=ubuntu
|
|
|
|
Group=www-data
|
|
|
|
WorkingDirectory=/home/ubuntu/moonstream/nodes/node_balancer
|
|
|
|
EnvironmentFile=/home/ubuntu/moonstream-secrets/app.env
|
|
|
|
Restart=on-failure
|
|
|
|
RestartSec=15s
|
2021-12-22 10:55:08 +00:00
|
|
|
ExecStart=/home/ubuntu/moonstream/nodes/node_balancer/nodebalancer -host "${AWS_LOCAL_IPV4}" -port 8544 -healthcheck
|
2021-12-20 15:01:37 +00:00
|
|
|
SyslogIdentifier=node-balancer
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|