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

Commit fe4d6c9

Browse files
authored
added restartsec and startlimitinterval configurations
1 parent 00221d0 commit fe4d6c9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

templates/pushgateway.service.j2

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
[Unit]
44
Description=Prometheus pushgateway
55
After=network-online.target
6+
StartLimitInterval=0
67

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

4546
SyslogIdentifier=pushgateway
4647
Restart=always
48+
RestartSec=0
4749

4850
[Install]
4951
WantedBy=multi-user.target

0 commit comments

Comments
 (0)