[LEDE-DEV] [PATCH] procd.sh: use parrameterized respawn values
John Crispin
john at phrozen.org
Sun Feb 26 01:39:47 PST 2017
On 20/02/2017 13:05, Claudiu Brasovean wrote:
Hi Claudiu,
please add a description to the patch explaining what it does and why it
is needed.
John
> Signed-off-by: Claudiu Brasovean <cbrasho at gmail.com>
> ---
> package/system/procd/files/procd.sh | 4 +++-
> 1 file changed, 3 insertions(+), 1 deletion(-)
>
> diff --git a/package/system/procd/files/procd.sh b/package/system/procd/files/procd.sh
> index 6347de5..9fbf47e 100644
> --- a/package/system/procd/files/procd.sh
> +++ b/package/system/procd/files/procd.sh
> @@ -351,8 +351,10 @@ _procd_close_instance() {
> if json_select respawn ; then
> json_get_values respawn_vals
> if [ -z "$respawn_vals" ]; then
> + local respawn_threshold=$(uci_get system. at service[0].respawn_threshold)
> + local respawn_timeout=$(uci_get system. at service[0].respawn_timeout)
> local respawn_retry=$(uci_get system. at service[0].respawn_retry)
> - _procd_add_array_data 3600 5 ${respawn_retry:-5}
> + _procd_add_array_data ${respawn_threshold:-3600} ${respawn_timeout:-5} ${respawn_retry:-5}
> fi
> json_select ..
> fi
>
More information about the Lede-dev
mailing list