mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-20 04:56:55 +02:00
31 lines
1.2 KiB
Diff
31 lines
1.2 KiB
Diff
From: Jakub Jirutka <jakub@jirutka.cz>
|
|
Date: Wed, 16 Nov 2022 01:47:34 +0100
|
|
Subject: [PATCH] Provide more reasonable defaults for supervise-daemon
|
|
|
|
The vendor's default parameters for the supervise-daemon are unreasonable
|
|
or even unusable for most of the services (empirically found), especially
|
|
respawn_delay=0 (i.e. respawn crashed service immediately).
|
|
|
|
--- a/etc/rc.conf
|
|
+++ b/etc/rc.conf
|
|
@@ -317,3 +317,20 @@ rc_tty_number=12
|
|
# If this is set to no, we do not send sigkill to all processes in the
|
|
# cgroup.
|
|
#rc_send_sigkill="YES"
|
|
+
|
|
+##############################################################################
|
|
+# SUPERVISE DAEMON CONFIGURATION VARIABLES
|
|
+# These variables sets more reasonable defaults for supervise-daemon(8).
|
|
+# They may be overriden on a per service basis.
|
|
+
|
|
+# Wait this number of seconds before restarting a daemon after it crashes.
|
|
+respawn_delay=2
|
|
+
|
|
+# Sets the maximum number of times a daemon will be respawned during a respawn
|
|
+# period. If a daemon dies more than this number of times during a respawn
|
|
+# period, supervise-daemon(8) will give up trying to respawn it and exit.
|
|
+# 0 means unlimited.
|
|
+respawn_max=5
|
|
+
|
|
+# Sets the length in seconds of a respawn period.
|
|
+respawn_period=1800
|