summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* configury: ChangeLog relevant to postgresql-setup onlyPavel Raiskup2015-02-101-1/+1
| | | | * Makefile.am: Choose better day for ChangeLog begin.
* postgresql.init: use $README_DIST alsoPavel Raiskup2015-02-102-3/+6
| | | | | | | | Issue detected by './configure --with-sysvinit && make check'. * postgresql.init.in ($PGDOCDIR): Wipe it out. ($README_DIST): Use on appropriate places. * Makefile.am: Add TODO relevant to this commit.
* configury: use one single variable SU_POSTGRESPavel Raiskup2015-02-104-21/+14
| | | | | | | | | | | | We use 'su' only for 'postgres' user purposes. So have one, configure-time-proven command. Also, in the previous commit I forgot to fix sysvinit file. * configure.ac (SU_POSTGRES): New variable. * postgresql-setup.in ($SU_POSTGRES): Use detected @SU_POSTGRES@. ($SU, $SU_L_POSTGRES): Avoid usage of those. * postgresql.init.in: Likewise. * .gitignore: Remove typoed ignore.
* postgresql-setup: mention login shell explicitlyPavel Raiskup2015-02-102-2/+6
| | | | | | | | | | | | | | The setup script was reported to not work if user 'postgres' has /sbin/nologin in /etc/passwd (explicitly set by administrator). This configuration does not seem to be terribly useful but there is no need to fail at all. Resolves: rhbz#1122143 * postgresql-setup.in ($SU_L_POSTGRES): New wrapping variable, using '-s /bin/sh' to bypass /sbin/nologin. This option should be supported both by 'su' and 'runuser'. * NEWS: Document.
* configury: fix bad usage of srcdirPavel Raiskup2015-01-072-2/+2
| | | | | | | Note: Revealed thanks to automake 1.5 rebase. * configure.ac ($c_s): Use top_builddir. * tests/Makefile.am (CHECK_DEPS): Use top_builddir.
* configury: don't build ChangeLog outside gitPavel Raiskup2015-01-071-10/+12
| | | | * Makefile.am (GL_GEN): Test the .git exists and exit if not.
* configury: typo in PG version comparePavel Raiskup2014-12-182-1/+8
| | | | | * NEWS: Mention previous commit. * configure.ac: s/lt/le/.
* postgresql-setup: use --username for pg_upgrade 9.4+Pavel Raiskup2014-12-182-3/+10
| | | | | | | | | | | | | The --user option still works but we should be rather careful for the future. Master only. References: http://www.postgresql.org/docs/9.4/static/release-9-4.html * configure.ac (AC_INIT): Bump to 3.0~dev version. (PG_UPGRADE_BIN_USER_OPT): New variable carrying the right format of pg_upgrade's username option. * postgresql-setup.in (upgrade): Use @PG_UPGRADE_BIN_USER_OPT@.
* Release 1.0v2.0Pavel Raiskup2014-12-182-1/+4
| | | | | * NEWS: Mention legacy scripts. * configure.ac (AC_INIT): Remove beta stamp.
* configury: remove redundant nodist_* prefixPavel Raiskup2014-12-011-8/+8
| | | | | | | .. from targets which are not distributed anyway. Thanks jmlich to forcing me to catch that mistake. * Makefile.am: Remove all nodist_ prefixes.
* systemd: added systemd's legacy scriptsJozef Mlich2014-12-014-1/+46
| | | | | | | | | * Makefile.am: (systemdlegacyscriptsdir) (nodist_systemdlegacyscrupts_DATA): New variables. (initdb, upgrade): New targets. * initdb.in: New legacy script template. * upgrade.in: Likewise. * .gitignore: Ignore newly generated scripts.
* sysvinit: rhel6 /etc/init.d to /etc/rc.d/init.dJozef Mlich2014-11-151-1/+1
| | | | * Makefile.am: s|init.d|rc.d/init.d|.
* sysvinit: install init script without '.init' suffixPavel Raiskup2014-11-141-2/+2
| | | | * Makefile.am: Make the target postgresql, not postgresql.init.
* init.d: move init script to sysconfdirJozef Mlích2014-11-131-1/+1
| | | | * Makefile.am: s|$(prefix)/etc/init.d|$(sysconfdir)/init.d|.
* sysvinit: generate init file when neededPavel Raiskup2014-10-025-2/+366
| | | | | | | | | | | | | From now, if ./configure --with-sysvinit is done, we install init script and do not install systemd files. Original patch written by Jozef Mlích (jmlich@redhat.com). * Makefile.am (initscriptsdir, nodist_initscripts_DATA): New variables. New postgresql.init target. * configure.ac: Add --with-sysvinit option. * postgresql.init.in: New sysvinit template. * .gitignore: Mention postgresql.init. * NEWS: Document.
* buildsystem: better handle distro-READMEPavel Raiskup2014-10-023-18/+14
| | | | | | | | | | Avoid detecting README.rpm-dist as we generate this file and we know the best where the file is. * configure.ac: Avoid detecting README path. Also substitute new variable README_DIST_BASENAME. * Makefile.am: Use the new $(README_DIST_BASENAME). * postgres-check-db-dir.in: Use README_DIST instead of PGDOCDIR.
* postgresql-check-db-dir: fix drop-in directory detectionPavel Raiskup2014-09-231-1/+1
| | | | | | | Backpatch to REL_001. * postgresql-check-db-dir.in: Fix drop-in directory to contain the 'service' string.
* tests: add basic bash syntax checkPavel Raiskup2014-09-232-5/+24
| | | | | | * tests/testsuite.at: New test. * configure.ac (AC_INIT): Bump version. Use only major-minor versions.
* release 1.0.0Pavel Raiskup2014-09-222-2/+2
| | | | | * NEWS: Adjust. * configure.ac: Likewise.
* docs: fix typo in postgresql-setup --helpPavel Raiskup2014-09-221-1/+1
| | | | | * postgresql-setup.in (USAGE_STRING): Remove brackets around mandatory option argument.
* configury: PREV_POSTGRES_BIN may be unsetPavel Raiskup2014-09-221-4/+4
| | | | | * configure.ac: Postpone PREV_POSTGRES_BIN check after the PREVPGENGINE check.
* release 0.9.2release-0.9.2Pavel Raiskup2014-09-191-1/+1
| | | | * configure.ac: Bump version.
* README.rpm-dist: document multiple-postmaster howtoPavel Raiskup2014-09-191-16/+20
| | | | * README.rpm-dist.in: Adjust according to latest changes.
* docs: adjust --help output and warning hintsPavel Raiskup2014-09-193-26/+45
| | | | | | * postgresql-check-db-dir.in: Just fix typos. * postgresql-setup.in: Reorganize --help. * TODO: Adjust after some time.
* postgresql-setup: opt --new-systemd-unit, --datadirPavel Raiskup2014-09-192-13/+96
| | | | | | | | | | | | | From now, admin may run single command to instantiate secondary PostgreSQL server. * postgresql-setup.in: Reorganize a little to avoid processing of port, datadir, etc. on different places. Process new options. Also make some warnings more clear. * postgresql-setup.in (warn_q, info_q): New echo wrappers. (generate_systemd_dropin): New function. (USAGE_STRING): Document new options. * NEWS: Document changes.
* postgresql-setup: detect systemd's NeedDaemonReloadprep-1Pavel Raiskup2014-09-182-0/+13
| | | | | | | | | | | 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-182-7/+14
| | | | | | | | * 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.
* configure: show the configuration results once donePavel Raiskup2014-09-181-1/+14
| | | | | * configure.ac: Print the basic info about configured postgresql-setup project.
* configury: fix make distcheck errorsPavel Raiskup2014-09-184-6/+9
| | | | | | | | | | | | | * Makefile.am (EXTRA_DIST): Always use $(srcdir) when referencing wildcards. (install-data-hook): Return true even for non-root make install. (DISTCLEANFILES): Mention ChangeLog. * configure.ac (TEST_GEN_FILES_LIST): Only use the basename. * tests/Makefile.am (CHECK_DEPS): Fix reference to TEST_GEN_FILES_LIST. (DISTCLEANFILES): Mention also atconfig and atlocal. * tests/testsuite.at: Fix reference to $TEST_GEN_FILES_LIST, use always $abs_top_builddir when referencing built files.
* configury: generated ChangeLog by make distPavel Raiskup2014-09-183-55/+20
| | | | | | | | Use the gitlog-to-changelog binary, if exists on the system. * Makefile.am (dist-hook): Add rules for ChangeLog. * ChangeLog: Remove file. * .gitignore: Ignore .gitignore.
* configury: some steps making the macros more consistentPavel Raiskup2014-09-182-82/+68
|
* man: generate manual page more carefullyPavel Raiskup2014-09-171-5/+24
| | | | | | | In general, we do not want to distribute help2man binary (to avoid license confusions, etc.). So if the manual needs to be re-generated, try to use help2man on system or keep warning about its non-existence.
* testsuite: configury & and add first test-casePavel Raiskup2014-09-176-54/+145
| | | | | | | This required little bit of generalization so I moved the SED_CALL into configure.ac to have it available for tests/Makefile.am also. The first testsuite just checks that no un-expanded @pattern@ exists in generated files.
* sysconfig: remove remaining filesPavel Raiskup2014-09-162-14/+1
|
* NEWS: mention move from /etc/postgresql/* configurationPavel Raiskup2014-09-162-2/+8
| | | | (and bump version to 0.9.2~beta)
* postgresql-check-db-dir: migrate from /etc/postgresql/*Pavel Raiskup2014-09-162-9/+13
|
* README.rpmd-dist: template fixingPavel Raiskup2014-09-164-72/+86
|
* postgresql.service: un-link with postgresql@.servicePavel Raiskup2014-09-162-8/+24
| | | | | | | | We need to create both files separately as (a) the 'postgresql.service' can not .include 'postgresql@.service' for some reason, /usr/lib/ drop-in breaks things (rhbz#1141824) and we want to have PGDATA unset for postgresql@.service, unlike the postgresql.service file.
* postgresql-setup: don't expect /etc/postgresql/* existsPavel Raiskup2014-09-162-47/+63
| | | | | | | | 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.
* NEWS: previous commit idea by hhorak, thanksPavel Raiskup2014-07-041-1/+1
|
* service: avoid cryptic failure with old configPavel Raiskup2014-07-043-5/+31
| | | | | | | | | | | | | | | 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.
* postgresql@.service: install this via install-data-hookPavel Raiskup2014-07-031-1/+1
| | | | | .. instead of install-exec-hook, which caused race conditions due to parallelized run of make.
* README.rpm-dist: trim trailing white-spacesPavel Raiskup2014-07-031-16/+16
|
* README.rpm-dist: document recent changesPavel Raiskup2014-07-033-48/+49
| | | | | | Follow the new processes - different options of postgresql-setup, instantiable unit files. Simplify the documentation thanks to the template.
* 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
* release: 0.9.1Pavel Raiskup2014-07-033-4/+44
| | | | Merge changes with ChangeLog & NEWS files. Bump version.
* upgrade/initdb logs: diverge among service namesPavel Raiskup2014-07-033-30/+26
| | | | | | 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-032-15/+30
| | | | | | | | .. 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.
* configure.ac: fix for PG_CTL_BIN & README_DISTPavel Raiskup2014-07-021-5/+3
|
* postgresql.service.in: use %N, not %pPavel Raiskup2014-07-011-1/+1
| | | | | | | | The %N expands into postgresql@PATTERN when you run systemctl start postgresql@PATTERN.service. The %p expanded only to "postgresql". Also make the existance of this file optional by dash-prefixing.