[lug] How to Move Log Output to /var/log?

Bill Thoen bthoen at gisnet.com
Sun Aug 12 12:52:00 MDT 2007


I've just set up a copy of PostgreSQL on a Fedora Core 6 machine, and
currently its log output is pointing to the default file
/usr/local/pgsql/data/serverlog.

I'd like to send that to var/log/pgsql/serverlog, but since the process
is run by the user postgres, how do I get it write into the /var/log
directory, which is owned by root? I notice that apache seems to be able to
write into /var/log/httpd as root, but how do you do that?

TIA,

- Bill Thoen



More information about the LUG mailing list