From: jsosic@gmail.com
To: pgsql-bugs@postgresql.org
Subject: BUG #13959: Missing tmpfile exclude conf for socket
Date: Sat, 13 Feb 2016 22:53:37 +0000
Message-ID: <20160213225337.2606.98794@wrigleys.postgresql.org> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
The following bug has been logged on the website:
Bug reference: 13959
Logged by: Jakov Sosic
Email address: jsosic@gmail.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
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: jsosic@gmail.com
Subject: Re: BUG #13959: Missing tmpfile exclude conf for socket
In-Reply-To: <20160213225337.2606.98794@wrigleys.postgresql.org>
References: <20160213225337.2606.98794@wrigleys.postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
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