diff options
author | William Hubbs <w.d.hubbs@gmail.com> | 2018-12-06 16:37:40 -0600 |
---|---|---|
committer | William Hubbs <w.d.hubbs@gmail.com> | 2018-12-06 16:37:40 -0600 |
commit | 76420d9849e6832a52aa4c1ba1fd2895b7d51a08 (patch) | |
tree | 015c35961e0ae698e5b40c8b3409ce010e708ee4 | |
parent | bebc604438f9586f26d0cad8bd72749ae84b4335 (diff) |
init.d/agetty: set default respawn period to 60 seconds
Without a respawn period setting, the supervisor will give up on
respawning agetty after it is respawned respawn_max times. For most
daemons giving up like this is reasonable, but not for agettys. Agettys
should always be respawned unless they are respawning too fafst,.
If an agetty is respawning faster than 10 times in 60 seconds, this
seems to be too fast.
-rw-r--r-- | init.d/agetty.in | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/init.d/agetty.in b/init.d/agetty.in index 971ee86c..a9606bf2 100644 --- a/init.d/agetty.in +++ b/init.d/agetty.in @@ -12,6 +12,7 @@ description="start agetty on a terminal line" supervisor=supervise-daemon port="${RC_SVCNAME#*.}" +respawn_period="${respawn_period:-60}" term_type="${term_type:-linux}" command=/sbin/agetty command_args_foreground="${agetty_options} ${port} ${baud} ${term_type}" |