From 4e6d95d090276ef8af8e76cb96247ea6d11b13ac Mon Sep 17 00:00:00 2001 From: Pavel Raiskup Date: Tue, 1 Jul 2014 15:08:11 +0200 Subject: 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. --- postgresql.service.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'postgresql.service.in') 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) -- cgit