summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPavel Raiskup <praiskup@redhat.com>2014-07-01 14:55:46 +0200
committerPavel Raiskup <praiskup@redhat.com>2014-07-01 15:10:19 +0200
commit27952ba4ca3550529929f1e967a4bbe3413da0fe (patch)
tree2e313d4df4ea11fb575926a5b9cad58006909f08
parentbbb9575cc6af844496386afe17603319ceccf1d9 (diff)
downloadpostgresql-setup-27952ba4ca3550529929f1e967a4bbe3413da0fe.tar.gz
postgresql-setup-27952ba4ca3550529929f1e967a4bbe3413da0fe.tar.xz
postgresql-setup-27952ba4ca3550529929f1e967a4bbe3413da0fe.zip
configury: install postgresql@.service
.. as a hardlink to postgresql.service. This allows us to instantiate postgresql@PATTERN units which will be easily configurable in /etc/postgresql/postgresql@PATTERN conf file. We may install separate service file with '.include' statement but that does not seem to be necessary ATM.
-rw-r--r--Makefile.am5
1 files changed, 5 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am
index 48cf2d7..64868f7 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -66,3 +66,8 @@ CLEANFILES = $(bin_SCRIPTS) \
$(nodist_pgdoc_DATA) \
$(pkgsysconf_DATA) \
$(nodist_systemdunits_DATA)
+
+install-exec-hook:
+ rm -rf $(DESTDIR)$(systemdunitsdir)/postgresql$(DISTSUFF)@.service
+ ln $(DESTDIR)$(systemdunitsdir)/postgresql$(DISTSUFF).service \
+ $(DESTDIR)$(systemdunitsdir)/postgresql$(DISTSUFF)@.service