From bf9d2f2291d0144146ba8263ec823996a41a2780 Mon Sep 17 00:00:00 2001 From: Donald Buczek Date: Fri, 3 May 2019 11:29:48 +0200 Subject: [PATCH] Add RemoveIPC=no to login config The default setting of RemoveIPC=yes for systemd-logind creates problems when non-system users (UID>1000) start daemons, which use System V semaphores and which should keep running when they log out their session. This is the case for postgreSQL. Install systemd-loging drop-in configuration file which sets `RemoveIPC=no`. --- install.sh | 3 +++ misc_etc_files/systemd/logind.conf.d/disable_RemoveIPC.conf | 5 +++++ 2 files changed, 8 insertions(+) create mode 100644 misc_etc_files/systemd/logind.conf.d/disable_RemoveIPC.conf diff --git a/install.sh b/install.sh index 1c56027..c857dda 100755 --- a/install.sh +++ b/install.sh @@ -138,4 +138,7 @@ install_data misc_systemd_units/nfsd.service "$DESTDIR$systemdunitdi mkdir -p "$DESTDIR$systemdunitdir/user@.service.d" install_data misc_systemd_units/user@.service.d/depend-on-remote-homes.conf \ "$DESTDIR$systemdunitdir/user@.service.d/depend-on-remote-homes.conf" +mkdir -p "$DESTDIR$sysconfdir/systemd/logind.conf.d" +install_data misc_etc_files/systemd/logind.conf.d/disable_RemoveIPC.conf \ + "$DESTDIR$sysconfdir/systemd/logind.conf.d/disable_RemoveIPC.conf" exit diff --git a/misc_etc_files/systemd/logind.conf.d/disable_RemoveIPC.conf b/misc_etc_files/systemd/logind.conf.d/disable_RemoveIPC.conf new file mode 100644 index 0000000..da11848 --- /dev/null +++ b/misc_etc_files/systemd/logind.conf.d/disable_RemoveIPC.conf @@ -0,0 +1,5 @@ +[Login] +# Allow non sytem-users to run daemons which use System V semaphores +# and survive their session, e.g. postgreSQL +# +RemoveIPC=no