Skip to content

Commit

Permalink
Add RemoveIPC=no to login config
Browse files Browse the repository at this point in the history
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`.
  • Loading branch information
donald committed May 3, 2019
1 parent a25aef4 commit bf9d2f2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
3 changes: 3 additions & 0 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
5 changes: 5 additions & 0 deletions misc_etc_files/systemd/logind.conf.d/disable_RemoveIPC.conf
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit bf9d2f2

Please sign in to comment.