Re: PSA: Systemd will kill PostgreSQL
Craig Ringer <craig@2ndquadrant.com>
From: Craig Ringer <craig@2ndquadrant.com>
To: Bernd Helmle <mailings@oopsware.de>
Cc: "Joshua D. Drake" <linuxhiker@gmail.com>,
pgsql-hackers <pgsql-hackers@postgresql.org>
Date: 2016-07-11T12:46:49Z
Lists: pgsql-hackers
On 11 July 2016 at 17:49, Bernd Helmle <mailings@oopsware.de> wrote:
>
>
> --On 11. Juli 2016 13:25:51 +0800 Craig Ringer <craig@2ndquadrant.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