blob: 7ffcc24bc524ff7ab5491c69d0d9cd6b2bd88e29 [file] [log] [blame]
[Unit]
Description=Monitors skia-rpi-master and allows for the hotspare to take over
Wants=network-online.target
After=network-online.target
[Service]
ExecStart=/usr/local/bin/hotspare \
--logtostderr \
--prom_port=:20003 \
--virtual_interface "enp5s0:0" \
--sync_period "10m" \
--virtual_ip "192.168.1.100" \
--liveness_addr "192.168.1.99:2049" \
--sync_remote_path "chrome-bot@192.168.1.99:/opt/rpi_img/prod.img" \
--sync_local_path "/opt/rpi_img/prod.img" \
--start_serving_playbook=/usr/local/share/hotspare/start_serving_image.yml \
--stop_serving_playbook=/usr/local/share/hotspare/stop_serving_image.yml \
--service_account_path=/home/chrome-bot/service-account.json
Restart=always
User=chrome-bot
Group=chrome-bot
LimitNOFILE=10000
[Install]
WantedBy=multi-user.target