From 1a2173a00f7296534d50257d917343117448b39c Mon Sep 17 00:00:00 2001 From: Christoph Berg <myon@debian.org> Date: Tue, 11 Jul 2017 20:21:10 +0200 Subject: [PATCH] debian/maintscripts-functions: Use deb-systemd-invoke instead of invoke-rc.d to stop "postgresql@$ver-*"; jessie's invoke-rc.d does not support service patterns. --- debian/changelog | 8 ++++++++ debian/maintscripts-functions | 3 ++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/debian/changelog b/debian/changelog index 623bc255..4383174c 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,11 @@ +postgresql-common (184) unstable; urgency=high + + * debian/maintscripts-functions: Use deb-systemd-invoke instead of + invoke-rc.d to stop "postgresql@$ver-*"; jessie's invoke-rc.d does not + support service patterns. + + -- Christoph Berg <myon@debian.org> Tue, 11 Jul 2017 20:19:21 +0200 + postgresql-common (183) unstable; urgency=medium * Team upload. diff --git a/debian/maintscripts-functions b/debian/maintscripts-functions index 8c6a3318..f0eb1e86 100644 --- a/debian/maintscripts-functions +++ b/debian/maintscripts-functions @@ -108,7 +108,8 @@ or a similar command (see 'man pg_createcluster')." >&2 stop_version() { if [ -d /run/systemd/system ]; then - invoke-rc.d "postgresql@$1-*" stop + # cannot use invoke-rc.d here because jessie's version doesn't like patterns + deb-systemd-invoke stop "postgresql@$1-*" else invoke-rc.d postgresql stop $1 fi -- GitLab