Skip to content
Snippets Groups Projects
Commit 16e53410 authored by Christoph Berg's avatar Christoph Berg :satellite: Committed by Christoph Berg
Browse files

postgresql@.service, postgresql-generator: Upgrade postgresql dependency to Required from Wanted.

parent f2b58285
Branches requires
No related tags found
No related merge requests found
......@@ -19,6 +19,8 @@ postgresql-common (171) UNRELEASED; urgency=medium
Trying to start already running clusters clusters will return 0 now
(was 2 in the native implementation).
* pg_createcluster, pg_renamecluster: Warn on cluster names with dashes.
* postgresql@.service, postgresql-generator: Upgrade postgresql dependency
to Required from Wanted.
[ Martin Pitt ]
* pg_upgradecluster: Fix "ANALZYE" typo.
......
......@@ -7,10 +7,10 @@
set -eu
gendir="$1"
wantdir="$1/postgresql.service.wants"
requiredir="$1/postgresql.service.requires"
pgservice="/lib/systemd/system/postgresql@.service"
mkdir -p "$wantdir"
mkdir -p "$requiredir"
for conf in /etc/postgresql/*/*/postgresql.conf; do
test -e "$conf" || continue
......@@ -27,7 +27,7 @@ for conf in /etc/postgresql/*/*/postgresql.conf; do
verdir="${dir%/*}"
version="${verdir##*/}"
cluster="${dir##*/}"
ln -s "$pgservice" "$wantdir/postgresql@$version-$cluster.service"
ln -s "$pgservice" "$requiredir/postgresql@$version-$cluster.service"
done
exit 0
......@@ -30,4 +30,4 @@ OOMScoreAdjust=-900
#RestartPreventExitStatus=SIGINT SIGTERM
[Install]
WantedBy=multi-user.target
RequiredBy=multi-user.target
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment