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

postgresql@.service: Use AssertPathExists instead of ConditionPathExists so...

postgresql@.service: Use AssertPathExists instead of ConditionPathExists so trying to operate on non-existing clusters fails loudly. (Closes: #891836)
parent 9c883ef8
No related branches found
No related tags found
No related merge requests found
postgresql-common (192) UNRELEASED; urgency=medium
* postgresql@.service: Use AssertPathExists instead of ConditionPathExists
so trying to operate on non-existing clusters fails loudly.
(Closes: #891836)
-- Christoph Berg <myon@debian.org> Sun, 13 May 2018 16:49:51 +0200
postgresql-common (191) unstable; urgency=medium
[ Christoph Berg ]
......
......@@ -5,7 +5,7 @@
[Unit]
Description=PostgreSQL Cluster %i
ConditionPathExists=/etc/postgresql/%I/postgresql.conf
AssertPathExists=/etc/postgresql/%I/postgresql.conf
PartOf=postgresql.service
ReloadPropagatedFrom=postgresql.service
Before=postgresql.service
......
......@@ -39,7 +39,7 @@ sub check_major {
# try to start specific cluster
if ($systemd) {
program_ok (0, "systemctl start postgresql\@$v-main");
program_ok (0, "systemctl start postgresql\@$v-main", 1);
} else {
program_ok (0, "/etc/init.d/postgresql start $v");
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment