BUG #13959: Missing tmpfile exclude conf for socket

From: jsosic(at)gmail(dot)com
To: pgsql-bugs(at)postgresql(dot)org
Subject: BUG #13959: Missing tmpfile exclude conf for socket
Date: 2016-02-13 22:53:37
Message-ID: 20160213225337.2606.98794@wrigleys.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

The following bug has been logged on the website:

Bug reference: 13959
Logged by: Jakov Sosic
Email address: jsosic(at)gmail(dot)com
PostgreSQL version: 9.4.1
Operating system: CentOS 7
Description:

Systemd on EL7 and probably some Debian based distributions has service
called systemd-tmpfiles-clean. That service deletes everything from /tmp
that's not excluded via special files.

PgSQL stores socket under /tmp by default, and systemd-tmpfiles-clean can
actually delete it. To avoid this, PGSQL packages should bring a file which
excludes it's socket from being deleted by tmpfiles-clean.

This is an example of file:

cat >> /usr/lib/tmpfiles.d/postgresql.conf <<EOF
# systemd tmpfiles exclude file for pgsql
# pgsql software unfortunately stores some important files
# in /tmp which should not be deleted

# Exclude pgsql socket and lock files
x /tmp/.s.PGSQL.*
EOF

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Michael Paquier 2016-02-14 12:36:04 Standbys using commas in application_name cannot become sync nodes
Previous Message public88878878887 2016-02-13 19:47:38 BUG #13958: Missing docs on error