summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPavel Raiskup <praiskup@redhat.com>2014-07-01 15:08:11 +0200
committerPavel Raiskup <praiskup@redhat.com>2014-07-01 16:32:39 +0200
commit4e6d95d090276ef8af8e76cb96247ea6d11b13ac (patch)
tree6caa299f45abd8179e342ff45c0f4005f44b0e09
parent27952ba4ca3550529929f1e967a4bbe3413da0fe (diff)
downloadpostgresql-setup-4e6d95d090276ef8af8e76cb96247ea6d11b13ac.tar.gz
postgresql-setup-4e6d95d090276ef8af8e76cb96247ea6d11b13ac.tar.xz
postgresql-setup-4e6d95d090276ef8af8e76cb96247ea6d11b13ac.zip
postgresql.service.in: use %N, not %p
The %N expands into postgresql@PATTERN when you run systemctl start postgresql@PATTERN.service. The %p expanded only to "postgresql". Also make the existance of this file optional by dash-prefixing.
-rw-r--r--postgresql.service.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/postgresql.service.in b/postgresql.service.in
index b67488e..ad0a3e1 100644
--- a/postgresql.service.in
+++ b/postgresql.service.in
@@ -13,7 +13,7 @@ Type=forking
User=postgres
Group=postgres
-EnvironmentFile=@PKGCONFIG_DIR@/%p
+EnvironmentFile=-@PKGCONFIG_DIR@/%N
# Where to send early-startup messages from the server (before the logging
# options of postgresql.conf take effect)