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

Commit b6920a8

Browse files
authored
Merge pull request #12 from oguzhaninan/patch-1
added restartsec and startlimitinterval configurations
2 parents 35a9eb5 + 0f9241b commit b6920a8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

templates/mysqld_exporter.service.j2

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
[Unit]
22
Description=Prometheus Mysqld Exporter
33
After=network-online.target
4+
StartLimitInterval=0
45

56
[Service]
67
Type=simple
@@ -30,6 +31,7 @@ ExecStart=/usr/local/bin/mysqld_exporter \
3031

3132
SyslogIdentifier=mysqld_exporter
3233
Restart=always
34+
RestartSec=1
3335

3436
[Install]
3537
WantedBy=multi-user.target

0 commit comments

Comments
 (0)