summaryrefslogtreecommitdiffstats
path: root/legacy-sysv-script.in
diff options
context:
space:
mode:
authorPavel Raiskup <praiskup@redhat.com>2015-02-10 13:24:16 +0100
committerPavel Raiskup <praiskup@redhat.com>2015-02-10 13:46:33 +0100
commitbea99d7e37e57d209a146505313280c38c8548f1 (patch)
treedd83745f83b300e4a7158e6f7ab8d3b2351fdcf3 /legacy-sysv-script.in
parenta494c5b62cd9a22a6a2b3a6cdc49e36af4e8d9bc (diff)
downloadpostgresql-setup-bea99d7e37e57d209a146505313280c38c8548f1.tar.gz
postgresql-setup-bea99d7e37e57d209a146505313280c38c8548f1.tar.xz
postgresql-setup-bea99d7e37e57d209a146505313280c38c8548f1.zip
legacy-scripts: generate them from single template
As we do not consider the postgresql@ unit variants (that would require libexec/initscripts/legacy-actions/postgresql@CONCRETE symlink to the default legacy-scripts directory), there is no need to do run-time checks. * Makefile.am (upgrade): Create from legacy-sysv-script.in template. (initdb): Likewise. (systemdlegacyscripts_DATA): Substitute with .. (systemdlegacyscripts_SCRIPTS): .. this to have execute bit after installation. (GENERATED_FILES): Add _SCRIPTS variant for systemdlegacyscripts. * legacy-sysv-script.in: New unified template for legacy scripts. * initdb.in: Remove. * upgrade.in: Likewise. * NEWS: Document.
Diffstat (limited to 'legacy-sysv-script.in')
-rw-r--r--legacy-sysv-script.in6
1 files changed, 6 insertions, 0 deletions
diff --git a/legacy-sysv-script.in b/legacy-sysv-script.in
new file mode 100644
index 0000000..fb26a49
--- /dev/null
+++ b/legacy-sysv-script.in
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+# Legacy action script for "service postgresql --@__FILE__@"
+cmd="@bindir@/postgresql-setup --@__FILE__@ postgresql@DISTSUFF@"
+echo "Hint: the preferred way to do this is now \"$cmd\"" >&2
+$cmd