From 4ad713977cd7630ee33e73806d96a5f1e5bf0e60 Mon Sep 17 00:00:00 2001 From: Christopher Baines Date: Mon, 4 Jan 2016 21:08:34 +0000 Subject: Specify that pgbouncer.service wants the prometheus-pgbouncer-exporter service This is to have systemd start the prometheus-pgbouncer-exporter service, if it starts the pgbouncer.service. Previously, if pgbouncer was stopped, and then started, the exporter service would not also be started automatically. --- prometheus-pgbouncer-exporter.service | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/prometheus-pgbouncer-exporter.service b/prometheus-pgbouncer-exporter.service index 39bdc5f..b95ab6c 100644 --- a/prometheus-pgbouncer-exporter.service +++ b/prometheus-pgbouncer-exporter.service @@ -8,4 +8,4 @@ User=postgres ExecStart=/usr/bin/prometheus-pgbouncer-exporter [Install] -WantedBy=multi-user.target +WantedBy=pgbouncer.service -- cgit v1.2.3