Skip to content
This repository has been archived by the owner on Nov 12, 2023. It is now read-only.

Commit

Permalink
added restartsec and startlimitinterval configurations (#12)
Browse files Browse the repository at this point in the history
added restartsec and startlimitinterval configurations
  • Loading branch information
paulfantom authored Aug 20, 2019
2 parents 00221d0 + fe4d6c9 commit 9c2e16d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions templates/pushgateway.service.j2
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
[Unit]
Description=Prometheus pushgateway
After=network-online.target
StartLimitInterval=0

[Service]
Type=simple
Expand Down Expand Up @@ -44,6 +45,7 @@ Environment="HTTP_PROXY={{ http_proxy }}"{% if https_proxy is defined %} "HTTPS_

SyslogIdentifier=pushgateway
Restart=always
RestartSec=0

[Install]
WantedBy=multi-user.target

0 comments on commit 9c2e16d

Please sign in to comment.