blob: 41f88ebfb5a82508fcb4c59fb2f609c37ba1846f [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 \
--log_dir=/var/log/logserver \
--influxdb_database=skmetrics \
--influxdb_host=https://metrics.skia.org \
--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