summaryrefslogtreecommitdiffstats
path: root/postgresql-ctl.in
Commit message (Collapse)AuthorAgeFilesLines
* init: add PGSCLS env variablePavel Raiskup2015-03-191-0/+5
| | | | | | | * postgresql-ctl.in: Respect PGSCLS env variable. * postgresql.init.in: Export PGSCLS variable possibly sourced from sysconfig configuration file. * NEWS: Document.
* bunch of rhel{6,7} & scl fixesPavel Raiskup2015-03-181-1/+6
| | | | | | | | | | | | * postgresql.init.in (initdb, upgrade): Use full path to postgresql-setup, this is mostly for proper documentation purposes in case of failure. * legacy-sysv-script.in: Pass --unit before actual unit name. * postgresql-ctl.in: Handle better the $port option passed to pg_ctl. * postgresql-setup.in: Use full path to postgresql-setup, mostly for documentation purposes. * README: Add elinks to BuildRequires.
* postgresql-ctl: fix SCLs & SELinuxPavel Raiskup2015-03-181-4/+17
| | | | | | | * postgresql.init.in: Use 'postgres' binary instead of 'postmaster', because it has proper selinux context. * postgresql.service.in: Use postgresql-ctl everywhere, to make sure that correct selinux context is used even with SCL.
* configury: another scl-izing commitPavel Raiskup2015-02-271-1/+1
| | | | | | | | | | | | | | | | | | | | | | | * Makefile.am: Move systemd directory definitions into configure.ac. This is then easily configurable via config.site. * configure.ac (PGENGINE, PG_CTL_BIN): Remove, bindir is sufficient. (PREVMAJORVERSION, PREVPGENGINE): Removed. It si configurable now. (INIDB_SCLS): Generalize into SCLS variable. (SCLS): Moved from INIDB_SCLS. (PGDATADIR): Default changed to have ${prefix} inside. (SED_RULES): Remove unused variables (or to not be used, TODO for next commit). (conf_dir): New macro to define config.site friendly directory variable. (SCL_SHELL_WRAPPER): Convenient macro to generate appropriate call to scl binary (only when building for software collections). * postgresql-check-db-dir.in: Use new variable layout. * postgresql-ctl.in: Likewise. * postgresql-setup.in: Likewise. * postgresql.service.in: Likewise. This fixes regression of not using ${bindir} properly.
* postgresql-ctl: use detected PG_CTL_BINPavel Raiskup2014-07-011-3/+1
|
* postgresql-ctl, DISTSUFF: introducePavel Raiskup2014-07-011-0/+9
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.