diff options
author | Pavel Raiskup <praiskup@redhat.com> | 2014-07-04 10:29:36 +0200 |
---|---|---|
committer | Pavel Raiskup <praiskup@redhat.com> | 2014-07-04 10:45:22 +0200 |
commit | 7bc6b1e356a0c157e575167c6fa57f647f52d601 (patch) | |
tree | bef38a1ebc44aa5ad3478eb578e582b84b27ddb6 /postgresql-setup.in | |
parent | 7a9df4d2886ef19417db9f4cf0c65b3160f877fc (diff) | |
download | postgresql-setup-7bc6b1e356a0c157e575167c6fa57f647f52d601.tar.gz postgresql-setup-7bc6b1e356a0c157e575167c6fa57f647f52d601.tar.xz postgresql-setup-7bc6b1e356a0c157e575167c6fa57f647f52d601.zip |
service: avoid cryptic failure with old config
If user removes currently provided /etc/postgresql/postgresql
configuration file, PGDATA env variable is not set. The
`systemctl start postgresql` would fail similarly to
`systemctl start postgresql@NOTCONFIGURED` when the configuration
file was not created yet with cryptic message
"Usage: ... "
Stop this behavior rather explicitly with proper error in
check-db-dir script.
Warn also user in similar fashion that the configuration should be
adjusted in case the PGDATA was set directly in service file.
Diffstat (limited to 'postgresql-setup.in')
0 files changed, 0 insertions, 0 deletions