Skip to content

Commit 6411b4b

Browse files
N-R-Knavi-desu
authored andcommitted
init.d/user: quit fast if it's failing rapidly
Ref: https://bugs.gentoo.org/952108 Ref: #817
1 parent b28c249 commit 6411b4b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

init.d/user.in

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@ command="@RC_LIBEXECDIR@/bin/openrc-user"
1717
command_args="$user"
1818
notify="fd:3"
1919

20+
# If it's rapidly failing, usually due to XDG_RUNTIME_DIR being unset,
21+
# we should just quit fast.
22+
respawn_max=3
23+
respawn_period=1
24+
2025
start_pre() {
2126
if [ "$user" = "$RC_SVCNAME" ]; then
2227
eerror "${RC_SVCNAME} cannot be started directly. You must create"

0 commit comments

Comments
 (0)