Re: PSA: Systemd will kill PostgreSQL

From: Craig Ringer <craig(at)2ndquadrant(dot)com>
To: Bernd Helmle <mailings(at)oopsware(dot)de>
Cc: "Joshua D(dot) Drake" <linuxhiker(at)gmail(dot)com>, pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: PSA: Systemd will kill PostgreSQL
Date: 2016-07-11 12:46:49
Message-ID: CAMsr+YGeX6Z4EZe9gsOut=hNP7nG+w3H51yuQPuYHxVHGGOW6g@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 11 July 2016 at 17:49, Bernd Helmle <mailings(at)oopsware(dot)de> wrote:

>
>
> --On 11. Juli 2016 13:25:51 +0800 Craig Ringer <craig(at)2ndquadrant(dot)com>
> wrote:
>
> > Perhaps by uid threshold in login.defs?
>
> systemd's configure.ac has this:
>
> AC_ARG_WITH(system-uid-max,
> AS_HELP_STRING([--with-system-uid-max=UID]
> [Maximum UID for system users]),
> [SYSTEM_UID_MAX="$withval"],
> [SYSTEM_UID_MAX="`awk 'BEGIN { uid=999 } /^\s*SYS_UID_MAX\s+/ {
> uid=$2 } END { print uid }' /etc/login.defs 2>/dev/null || echo 999`"])
>
> so yes, it's the definition from there.
>

At COMPILE TIME?

W.T.F?

In the thread about this, someone even says that's a bad idea. The systemd
folks aren't really big on listening, though...

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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Michael Paquier 2016-07-11 13:05:54 Re: BUG #14230: Wrong timeline returned by pg_stop_backup on a standby
Previous Message Craig Ringer 2016-07-11 12:45:59 Re: Disable WAL completely - Performance and Persistency research