Skip to content
Snippets Groups Projects
Commit 1a2173a0 authored by Christoph Berg's avatar Christoph Berg :satellite:
Browse files

debian/maintscripts-functions: Use deb-systemd-invoke instead of invoke-rc.d...

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.
parent af5d49bc
No related branches found
Tags 184
No related merge requests found
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.
......
......@@ -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
......
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