diff options
author | Simon Rettberg | 2019-05-24 16:23:19 +0200 |
---|---|---|
committer | Simon Rettberg | 2019-05-24 16:23:19 +0200 |
commit | 2cadb11bc8a483840c1f8587a7e6cf36cc06f0a4 (patch) | |
tree | 0be9075a95c16b1f2def365189703b2213c17f1b /core/modules/safe-mode | |
parent | [run-virt] Fix warning about messy tr call (diff) | |
download | mltk-2cadb11bc8a483840c1f8587a7e6cf36cc06f0a4.tar.gz mltk-2cadb11bc8a483840c1f8587a7e6cf36cc06f0a4.tar.xz mltk-2cadb11bc8a483840c1f8587a7e6cf36cc06f0a4.zip |
[*] Use logind.conf to kill user processes
Get rid of old, brittle script in pam session close
that would do wonky stuff to kill stray user processes.
Diffstat (limited to 'core/modules/safe-mode')
-rwxr-xr-x | core/modules/safe-mode/data/opt/openslx/scripts/systemd-safe_mode | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/core/modules/safe-mode/data/opt/openslx/scripts/systemd-safe_mode b/core/modules/safe-mode/data/opt/openslx/scripts/systemd-safe_mode index 4c3195f7..eeaf34b1 100755 --- a/core/modules/safe-mode/data/opt/openslx/scripts/systemd-safe_mode +++ b/core/modules/safe-mode/data/opt/openslx/scripts/systemd-safe_mode @@ -31,7 +31,8 @@ systemd_config() { # No idleaction rm -- "/etc/cron.d/openslx-idleaction" # Ignore everything but power button, no VTs - cat > "${FUTURE_ROOT}/etc/systemd/logind.conf" <<EOF + mkdir -p "/etc/systemd/logind.conf.d" + cat > "/etc/systemd/logind.conf.d/99-exam.conf" <<EOF [Login] NAutoVTs=0 ReserveVT=0 |