aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Baines <mail@cbaines.net>2016-02-27 19:01:09 +0000
committerChristopher Baines <mail@cbaines.net>2016-02-27 19:21:35 +0000
commit4c9f29da28d7be3da6f17245971788d38e121b1c (patch)
tree25fe1ea77291e0e77066c553207d554cb0017de6
parent5e71220222dba3b2c00598684d3b0d613372e2c3 (diff)
downloadprometheus-pgbouncer-exporter-4c9f29da28d7be3da6f17245971788d38e121b1c.tar
prometheus-pgbouncer-exporter-4c9f29da28d7be3da6f17245971788d38e121b1c.tar.gz
Add patch to specify configuration of the service file
-rw-r--r--debian/patches/0001-Specify-configuration-defaults-in-the-service-file.patch20
-rw-r--r--debian/patches/series1
2 files changed, 21 insertions, 0 deletions
diff --git a/debian/patches/0001-Specify-configuration-defaults-in-the-service-file.patch b/debian/patches/0001-Specify-configuration-defaults-in-the-service-file.patch
new file mode 100644
index 0000000..a80f3cb
--- /dev/null
+++ b/debian/patches/0001-Specify-configuration-defaults-in-the-service-file.patch
@@ -0,0 +1,20 @@
+From: Christopher Baines <mail@cbaines.net>
+Date: Sat, 27 Feb 2016 18:59:58 +0000
+Subject: Specify configuration defaults in the service file
+
+---
+ prometheus-pgbouncer-exporter.service | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/prometheus-pgbouncer-exporter.service b/prometheus-pgbouncer-exporter.service
+index b95ab6c..ab503bf 100644
+--- a/prometheus-pgbouncer-exporter.service
++++ b/prometheus-pgbouncer-exporter.service
+@@ -5,6 +5,7 @@ After=pgbouncer.service
+
+ [Service]
+ User=postgres
++Environment='LICENCE_LOCATION=/usr/share/doc/prometheus-pgbouncer-exporter/copyright' 'CONFIG=/etc/prometheus-pgbouncer-exporter.conf'
+ ExecStart=/usr/bin/prometheus-pgbouncer-exporter
+
+ [Install]
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..50904be
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+0001-Specify-configuration-defaults-in-the-service-file.patch