Re: PSA: Systemd will kill PostgreSQL - Mailing list pgsql-hackers

From Tom Lane
Subject Re: PSA: Systemd will kill PostgreSQL
Date
Msg-id 716.1471358522@sss.pgh.pa.us
Whole thread Raw
In response to Re: PSA: Systemd will kill PostgreSQL  (Peter Eisentraut <peter.eisentraut@2ndquadrant.com>)
Responses Re: PSA: Systemd will kill PostgreSQL  (Magnus Hagander <magnus@hagander.net>)
List pgsql-hackers
Peter Eisentraut <peter.eisentraut@2ndquadrant.com> writes:
> On 8/16/16 8:53 AM, Greg Stark wrote:
>> That's a system level change though. How would a normal user manage this?

> Arguably, if you are a normal user, you probably shouldn't be using
> systemd to start system services under your own account.

I'm not totally sure, but I think that the complaints were not about
systemd-driven services.  (In such a case, it's almost certainly possible
to fix it by adjusting your systemd unit definition file, anyway.)
Rather, the problem arises when J. Ordinary User does
nohup postmaster &

and then logs out.  That's certainly not much of a recipe for production
services but people have been known to do it for testing --- in fact,
that's pretty much what I do every day with test postmasters.  I suppose
whenever I migrate to a recent-systemd-based distro I'm going to have to
turn off this miserable excuse for a feature.  I sure hope there's a way
to do so.
        regards, tom lane



pgsql-hackers by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: PSA: Systemd will kill PostgreSQL
Next
From: Magnus Hagander
Date:
Subject: Re: PSA: Systemd will kill PostgreSQL