pg.ddx.io pgsql-bugs@postgresql.org mailing list archive
help / color / mirror / Atom feedBUG #14968: package postgresql93-server-9.3.20-3PGDG.rhel7.x86_64 fails to start
2+ messages / 2 participants
[nested] [flat]
* BUG #14968: package postgresql93-server-9.3.20-3PGDG.rhel7.x86_64 fails to start
@ 2017-12-12 10:06 hakan@hagenrud.nu
2017-12-12 16:33 ` Re: BUG #14968: package postgresql93-server-9.3.20-3PGDG.rhel7.x86_64 fails to start Devrim Gündüz <devrim@gunduz.org>
0 siblings, 1 reply; 2+ messages in thread
From: hakan@hagenrud.nu @ 2017-12-12 10:06 UTC (permalink / raw)
To: pgsql-bugs; +Cc: hakan@hagenrud.nu
The following bug has been logged on the website:
Bug reference: 14968
Logged by: Håkan Hagenrud
Email address: hakan@hagenrud.nu
PostgreSQL version: 9.3.20
Operating system: Centos 7.4
Description:
Problem is in the systemd definition that is bundled in the package. The
variable:
TimeoutSec=infinity
is not supported on CentOS 7.4 as it uses systemd-219-42.el7_4.4.x86_64. And
the inifinity variable is supported from 229 of systemd. Hence
# It's not recommended to modify this file in-place, because it will be
# overwritten during package upgrades. If you want to customize, the
# best way is to create a file
"/etc/systemd/system/postgresql-9.3.service",
# containing
# .include /lib/systemd/system/postgresql-9.3.service
# ...make your changes here...
# For more info about custom unit files, see
#
http://fedoraproject.org/wiki/Systemd#How_do_I_customize_a_unit_file.2F_add_a_custom_unit_file.3F
# Note: changing PGDATA will typically require adjusting SELinux
# configuration as well.
# Note: do not use a PGDATA pathname containing spaces, or you will
# break postgresql-setup.
[Unit]
Description=PostgreSQL 9.3 database server
After=syslog.target
After=network.target
[Service]
Type=forking
User=postgres
Group=postgres
# Note: avoid inserting whitespace in these Environment= lines, or you may
# break postgresql-setup.
# Location of database directory
Environment=PGDATA=/var/lib/pgsql/9.3/data/
# Where to send early-startup messages from the server (before the logging
# options of postgresql.conf take effect)
# This is normally controlled by the global default set by systemd
# StandardOutput=syslog
# Disable OOM kill on the postmaster
OOMScoreAdjust=-1000
ExecStartPre=/usr/pgsql-9.3/bin/postgresql93-check-db-dir ${PGDATA}
ExecStart=/usr/pgsql-9.3/bin/pg_ctl start -D ${PGDATA} -s -w -t 300
ExecStop=/usr/pgsql-9.3/bin/pg_ctl stop -D ${PGDATA} -s -m fast
ExecReload=/usr/pgsql-9.3/bin/pg_ctl reload -D ${PGDATA} -s
# Do not set any timeout value, so that systemd will not kill postmaster
# during crash recovery.
TimeoutSec=infinity
[Install]
WantedBy=multi-user.target
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: BUG #14968: package postgresql93-server-9.3.20-3PGDG.rhel7.x86_64 fails to start
2017-12-12 10:06 BUG #14968: package postgresql93-server-9.3.20-3PGDG.rhel7.x86_64 fails to start hakan@hagenrud.nu
@ 2017-12-12 16:33 ` Devrim Gündüz <devrim@gunduz.org>
0 siblings, 0 replies; 2+ messages in thread
From: Devrim Gündüz @ 2017-12-12 16:33 UTC (permalink / raw)
To: hakan@hagenrud.nu; pgsql-bugs
Hi Håkan,
On Tue, 2017-12-12 at 10:06 +0000, hakan@hagenrud.nu wrote:
>
> Bug reference: 14968
> Logged by: Håkan Hagenrud
> Email address: hakan@hagenrud.nu
> PostgreSQL version: 9.3.20
> Operating system: Centos 7.4
> Description:
>
> Problem is in the systemd definition that is bundled in the package. The
> variable:
> TimeoutSec=infinity
> is not supported on CentOS 7.4 as it uses systemd-219-42.el7_4.4.x86_64. And
> the inifinity variable is supported from 229 of systemd.
Actually that package should never been pushed to repos :( Anyway, reverted the
change, and pushed 9.3.20-5 to repos.
Regards,
--
Devrim Gündüz
EnterpriseDB: https://www.enterprisedb.com
PostgreSQL Consultant, Red Hat Certified Engineer
Twitter: @DevrimGunduz , @DevrimGunduzTR
Attachments:
signature.asc (application/pgp-signature, 832B) download
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2017-12-12 16:33 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2017-12-12 10:06 BUG #14968: package postgresql93-server-9.3.20-3PGDG.rhel7.x86_64 fails to start hakan@hagenrud.nu
2017-12-12 16:33 ` Devrim Gündüz <devrim@gunduz.org>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox