X-Git-Url: https://iankelling.org/git/?a=blobdiff_plain;f=filesystem%2Fetc%2Fsystemd%2Fsystem%2Fprometheus.service.d%2Foverride.conf;fp=filesystem%2Fetc%2Fsystemd%2Fsystem%2Fprometheus.service.d%2Foverride.conf;h=a928b2a7d92b557db0e1c32a4837752841ca4572;hb=4b3f043829a57215e1251122a8ab0019b717ca8d;hp=0000000000000000000000000000000000000000;hpb=5b09fb8ae01ae1c9aa5c3ccde60f6e6a22f7d6a6;p=distro-setup diff --git a/filesystem/etc/systemd/system/prometheus.service.d/override.conf b/filesystem/etc/systemd/system/prometheus.service.d/override.conf new file mode 100644 index 0000000..a928b2a --- /dev/null +++ b/filesystem/etc/systemd/system/prometheus.service.d/override.conf @@ -0,0 +1,12 @@ +[Unit] +# needed to continually restart +StartLimitIntervalSec=0 + +[Service] +Restart=always +# time to sleep before restarting a service +RestartSec=600 + +# empty signifies to replace the existing value +ExecStart= +ExecStart=/usr/local/bin/prometheus $ARGS