summaryrefslogtreecommitdiffstats
path: root/postgresql-setup.in
Commit message (Collapse)AuthorAgeFilesLines
* postgresql-setup: detect systemd's NeedDaemonReloadprep-1Pavel Raiskup2014-09-181-0/+9
| | | | | | | | | | | 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: leftovers, user feelingPavel Raiskup2014-09-181-7/+10
| | | | | | | | * 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.
* postgresql-setup: don't expect /etc/postgresql/* existsPavel Raiskup2014-09-161-42/+57
| | | | | | | | 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.
* postgresql-setup: --upgrade std{out,err} adjustedPavel Raiskup2014-07-031-12/+8
| | | | | | | | | | | | 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
* upgrade/initdb logs: diverge among service namesPavel Raiskup2014-07-031-20/+20
| | | | | | Generate separate log file for each service. Also, don't configure with INITDB_LOG or UPGRADE_LOG but rather with POSTGRES_HOME.
* postgresql-setup: expect '--port 5432' implictlyPavel Raiskup2014-07-031-15/+28
| | | | | | | | .. 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.
* Generate postgresql.service and configuration filePavel Raiskup2014-07-011-1/+1
|
* postgresql-ctl, DISTSUFF: introducePavel Raiskup2014-07-011-1/+1
| | | | | | | | | | | | 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.
* docs: update option documentation and generate manPavel Raiskup2014-07-011-10/+33
|
* postgresql-setup: code movementPavel Raiskup2014-07-011-224/+235
| | | | | | 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.
* configury: prepare for autotoolsPavel Raiskup2014-07-011-0/+472