From eb0f8679b63f5b9dfed6b8b213d5fba352a53a1d Mon Sep 17 00:00:00 2001 From: Robert-André Mauchin Date: Mar 28 2021 17:43:42 +0000 Subject: Add ExecReload to service file --- diff --git a/golang-github-prometheus.spec b/golang-github-prometheus.spec index 1bf8ab3..1b48946 100644 --- a/golang-github-prometheus.spec +++ b/golang-github-prometheus.spec @@ -21,7 +21,7 @@ The Prometheus monitoring system and time series database.} documentation Name: %{goname} -Release: 4%{?dist} +Release: 5%{?dist} Summary: Prometheus monitoring system and time series database # Upstream license specification: Apache-2.0 @@ -234,6 +234,9 @@ mkdir -p %{buildroot}%{_sharedstatedir}/prometheus %gopkgfiles %changelog +* Sun Mar 28 18:57:11 CEST 2021 Robert-André Mauchin - 2.24.1-5 +- Add ExecReload to service file + * Tue Mar 02 2021 Zbigniew Jędrzejewski-Szmek - 2.24.1-4 - Rebuilt for updated systemd-rpm-macros See https://pagure.io/fesco/issue/2583. diff --git a/prometheus.service b/prometheus.service index edbc418..5b391b3 100644 --- a/prometheus.service +++ b/prometheus.service @@ -1,20 +1,23 @@ [Unit] -Description=Prometheus instance -Documentation=https://prometheus.io/docs/prometheus/ +Description=Prometheus service monitoring system and time series database +Documentation=https://prometheus.io/docs/introduction/overview/ man:prometheus(1) Wants=network-online.target After=network-online.target [Service] +Restart=on-failure EnvironmentFile=/etc/sysconfig/prometheus User=prometheus Group=prometheus -Type=simple ExecStart=/usr/bin/prometheus \ --config.file=${CONFIG_FILE} \ --storage.tsdb.path=${STORAGE_TSDB_PATH} \ --web.console.libraries=${WEB_CONSOLE_LIBRARIES_PATH} \ --web.console.templates=${WEB_CONSOLE_TEMPLATES_PATH} \ --web.listen-address=${WEB_LISTEN_ADDRESS} +ExecReload=/bin/kill -HUP $MAINPID +TimeoutStopSec=20s +SendSIGKILL=no [Install] WantedBy=multi-user.target