aboutsummaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
Diffstat (limited to 'package')
-rw-r--r--package/system/procd/files/procd.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/package/system/procd/files/procd.sh b/package/system/procd/files/procd.sh
index a2a63f8cd5..78b01627d8 100644
--- a/package/system/procd/files/procd.sh
+++ b/package/system/procd/files/procd.sh
@@ -316,6 +316,16 @@ _procd_append_param() {
}
_procd_close_instance() {
+ local respawn_vals
+ if json_select respawn ; then
+ json_get_values respawn_vals
+ if [ -z "$respawn_vals" ]; then
+ local respawn_retry=$(uci_get system.@service[0].respawn_retry)
+ _procd_add_array_data 3600 5 ${respawn_retry:-5}
+ fi
+ json_select ..
+ fi
+
json_close_object
}