| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
| |
Because we rely on parsing of `systemctl show -p` outuput heavily,
we need to detect whether the service file or some dropin did not
change (or was not added). So from now we rather instruct admin
to do daemon-reload when something changed..
* postgresql-setup.in: Detect the NeedDaemonReload and warn if
yes.
* NEWS: Document.
|
|
|
|
|
|
|
|
| |
* postgresql-setup.in (USAGE_STRING): Mention --port option.
(initdb): Mention in info output the non-standard port, when used.
* postgresql-setup.in: Do not throw the default-port message
always, remved remaining sysconfig leftover.
* NEWS: Mention that env files are now supported.
|
|
|
|
|
|
|
|
| |
That concept was against systemd intentions. From now we
should stop using .include statement in service files and
encourage people using the systemd's drop-in feature. That
complicates things a little, at least until the rhbz#1139148
is not resolved somehow.
|
|
|
|
|
|
|
|
|
|
|
|
| |
Use the echo wrappers also in --upgrade. Previously, e.g. when
PGDATA pointed to directory without SELinux label, the output from
postgresql-setup --upgrade was broken by warnings from restorecon:
# postgresql-setup --upgrade --service postgresql@SUFFIX
Upgrading database: /sbin/restorecon: Warning no default label
for /tmp/data
/sbin/restorecon: Warning no default label for /tmp/data/pg_log
OK
|
|
|
|
|
|
| |
Generate separate log file for each service. Also, don't
configure with INITDB_LOG or UPGRADE_LOG but rather with
POSTGRES_HOME.
|
|
|
|
|
|
|
|
| |
.. only when '--unit=postgresql'. When user specifies
--unit=postgresql@unitname, the --port is still required.
Also, don't adjust the 'port = ' configuration in postgresql.conf
when not necessary.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
We need postgresql-ctl for to keep backward compatibility with
clients setting "PGPORT" directly in service file.
DISTSUFF variable (which is read by ./configure) may be used to
generated namespaced binary names -- e.g. DISTSUFF=93 results in
postgresql93-setup is generated instead of postgresql-setup.
This commit also adjusts autotools build system to not generate
scripts by ./configure, but rather by make.
|
| |
|
|
|
|
|
|
| |
This commit just moves the function at the top of
postgresqk.setup.in file. Sorry for breaking history a little,
juse "git blame -C" for analysing.
|
|
|