What's the logic of touching /var/log/pgsql ?

From: Craig Ringer <craig(at)2ndquadrant(dot)com>
To: pgsql-pkg-yum <pgsql-pkg-yum(at)postgresql(dot)org>
Subject: What's the logic of touching /var/log/pgsql ?
Date: 2014-08-01 07:52:21
Message-ID: 53DB4735.5020704@2ndquadrant.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-pkg-yum

The PGDG spec files for PostgreSQL have the following lines in the
server preinst section:

%pre server
... creates Pg user ...
touch /var/log/pgsql
chown postgres:postgres /var/log/pgsql
chmod 0700 /var/log/pgsql

What's the logic there? Why create an empty /var/log/pgsql file owned by
user 'pgsql' ? It's not used for anything and just seems confusing.

--
Craig Ringer http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services

Responses

Browse pgsql-pkg-yum by date

  From Date Subject
Next Message Ketan Padegaonkar 2014-08-01 09:58:09 Unable to install postgis2_92
Previous Message Craig Ringer 2014-07-31 17:35:26 Re: Unifying the spec files?