From ecdd5c5351035dbe90e74ab2bff06ef482833fa3 Mon Sep 17 00:00:00 2001 From: Xiaoyu Zhong <topaz.zhong@gmail.com> Date: Tue, 21 Jul 2020 16:57:32 +0800 Subject: [PATCH] Move StartLimitInterval to [Service] section --- templates/node_exporter.service.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/node_exporter.service.j2 b/templates/node_exporter.service.j2 index be62efc..1ea56c2 100644 --- a/templates/node_exporter.service.j2 +++ b/templates/node_exporter.service.j2 @@ -3,7 +3,6 @@ [Unit] Description=Prometheus Node Exporter After=network-online.target -StartLimitInterval=0 [Service] Type=simple @@ -32,6 +31,7 @@ ExecStart={{ _node_exporter_binary_install_dir }}/node_exporter \ SyslogIdentifier=node_exporter Restart=always RestartSec=1 +StartLimitInterval=0 PrivateTmp=yes {% for m in ansible_mounts if m.mount == '/home' %} -- GitLab