From a6c2e88fe73012d2204cd1ecf4a6089e130659b0 Mon Sep 17 00:00:00 2001 From: Wei Wu <62574090+weiwu-sre@users.noreply.github.com> Date: Sat, 4 Apr 2020 20:23:36 -0700 Subject: [PATCH] Make sure service responde to reload --- templates/prometheus.service.j2 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/templates/prometheus.service.j2 b/templates/prometheus.service.j2 index 83aee17..a1ce3b9 100644 --- a/templates/prometheus.service.j2 +++ b/templates/prometheus.service.j2 @@ -14,6 +14,7 @@ Restart=on-failure User={{ prometheus_user }} Group={{ prometheus_group }} +ExecReload=/bin/kill -HUP $MAINPID {% if prometheus_opts is defined %} ExecStart={{ prometheus_daemon_dir }}/prometheus {{ prometheus_opts }} --config.file={{ prometheus_config_path }}/prometheus.yml --storage.tsdb.path={{ prometheus_db_path }} --web.console.templates={{ prometheus_daemon_dir }}/consoles --web.console.libraries={{ prometheus_daemon_dir }}/console_libraries @@ -23,4 +24,4 @@ ExecStart={{ prometheus_daemon_dir }}/prometheus --conf [Install] -WantedBy=multi-user.target \ No newline at end of file +WantedBy=multi-user.target