Skip to content
This repository was archived by the owner on Mar 9, 2024. It is now read-only.

Commit 482895f

Browse files
authored
added restartsec and startlimitinterval configurations
:)
1 parent b4099c1 commit 482895f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

templates/process_exporter.service.j2

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

78
[Service]
89
Type=simple
@@ -11,6 +12,7 @@ Group={{ process_exporter_system_group }}
1112
ExecStart=/usr/local/bin/process_exporter
1213
SyslogIdentifier=process_exporter
1314
Restart=always
15+
RestartSec=1
1416

1517
[Install]
1618
WantedBy=multi-user.target

0 commit comments

Comments
 (0)