diff --git a/systemd/sozu-prometheus-connector.service b/systemd/sozu-prometheus-connector.service index aeb6b8c..fcea6eb 100644 --- a/systemd/sozu-prometheus-connector.service +++ b/systemd/sozu-prometheus-connector.service @@ -1,17 +1,22 @@ [Unit] Description = Transmit requests to Sōzu, consuming a pulsar topic Documentation = https://github.com/cleverCloud/sozu-prometheus-connector -After = network-online.target local-fs.target remote-fs.target time-sync.target sozu.service -Requires = network-online.target local-fs.target remote-fs.target time-sync.target sozu.service +After = network-online.target local-fs.target remote-fs.target time-sync.target +Requires = network-online.target local-fs.target remote-fs.target time-sync.target + +StartLimitIntervalSec=10 +StartLimitBurst=5 [Service] Type=simple + ExecStart=/usr/bin/sozu-prometheus-connector --config /etc/sozu/connector/prometheus.toml Restart=on-failure + # Since systemd 229, should be in [Unit] but in order to support systemd <229, # it is also supported to have it here. StartLimitInterval=10 StartLimitBurst=5 [Install] -WantedBy = multi-user.target \ No newline at end of file +WantedBy = multi-user.target