summaryrefslogtreecommitdiffstats
path: root/core/modules/safe-mode
diff options
context:
space:
mode:
Diffstat (limited to 'core/modules/safe-mode')
-rwxr-xr-xcore/modules/safe-mode/data/opt/openslx/scripts/systemd-safe_mode5
1 files changed, 3 insertions, 2 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 b23a76ff..a475fadf 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
@@ -48,8 +48,9 @@ HandleLidSwitch=ignore
IdleAction=ignore
EOF
# reload
- systemctl daemon-reload
- systemctl restart systemd-logind
+ timeout 2 systemctl daemon-reload
+ timeout 3 systemctl try-restart systemd-logind
+ systemctl --no-block stop getty@tty1 # Since this is hard-linked
}
ssh_banner() {