Skip to content

Commit 94e88ca

Browse files
committed
Merge remote-tracking branch 'ArrayBolt3/arraybolt3/trixie'
2 parents 949d234 + 437e6ad commit 94e88ca

File tree

3 files changed

+43
-0
lines changed

3 files changed

+43
-0
lines changed

usr/lib/systemd/system-preset/50-usability-misc.preset

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,6 @@
33

44
## https://www.whonix.org/wiki/orca
55
disable orca-kill-at-shutdown.service
6+
7+
## Slows down normal shutdown by one second.
8+
disable check-user-slice-on-shutdown.service
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
## Copyright (C) 2025 - 2025 ENCRYPTED SUPPORT LLC <[email protected]>
2+
## See the file COPYING for copying conditions.
3+
4+
[Unit]
5+
Description=displays information about user processes that become hung during shutdown
6+
7+
[Service]
8+
Type=oneshot
9+
RemainAfterExit=yes
10+
ExecStart=true
11+
ExecStop=/usr/libexec/usability-misc/check-user-slice-on-shutdown
12+
13+
[Install]
14+
WantedBy=multi-user.target
15+
WantedBy=sysmaint-boot.target
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
#!/bin/bash
2+
3+
## Copyright (C) 2025 - 2025 ENCRYPTED SUPPORT LLC <[email protected]>
4+
## See the file COPYING for copying conditions.
5+
6+
set -o errexit
7+
set -o nounset
8+
set -o errtrace
9+
set -o pipefail
10+
11+
source /usr/libexec/helper-scripts/light_sleep.bsh
12+
13+
counter=0
14+
while (( counter < 10 )); do
15+
light_sleep 1
16+
systemd_cgls_output="$(systemd-cgls --unit user.slice)"
17+
if [ "$(wc -l <<< "$systemd_cgls_output")" == '1' ]; then
18+
exit 0
19+
fi
20+
printf '%s\n' "WARNING: user.slice is not empty yet. Contents:"
21+
printf '%s\n' "$systemd_cgls_output"
22+
done
23+
24+
printf '%s\n' "ERROR: user.slice not empty after 10 seconds!"
25+
exit 1

0 commit comments

Comments
 (0)