Skip to content

Commit

Permalink
distribution: update systemd service
Browse files Browse the repository at this point in the history
Signed-off-by: Florentin Dubois <[email protected]>
  • Loading branch information
FlorentinDUBOIS committed Nov 14, 2023
1 parent fe679f9 commit 735a713
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions systemd/sozu-prometheus-connector.service
Original file line number Diff line number Diff line change
@@ -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
WantedBy = multi-user.target

0 comments on commit 735a713

Please sign in to comment.