Control: tag -1 moreinfo Re: To Daniel Kahn Gillmor 2017-09-25 <20170925073154.d5a7ekrvmg3wf...@msg.df7cb.de> > > but this doesn't prevent the postgres process from re-opeing > > /var/log/postgresql/postgresql-9.6-main.log. I've traced the startup > > code as far as pg_ctlcluster to where it looks like it's enforcing the > > logging to /var/log, but i can't figure out how to get it to stop. > > I realize that setups that really just want to catch stderr to feed it > elsewhere have a problem here.
I could get it working by adding --foreground to the startup command: # /etc/systemd/system/postgresql@.service.d/override.conf [Service] Type=exec ExecStart= ExecStart=-/usr/bin/pg_ctlcluster --skip-systemctl-redirect --foreground %i start Does that work for you? Christoph