aboutsummaryrefslogtreecommitdiffstats
path: root/package/system
diff options
context:
space:
mode:
authorDenis Osvald <denis.osvald@sartura.hr>2017-02-14 17:08:49 +0100
committerJohn Crispin <john@phrozen.org>2017-02-15 09:35:12 +0100
commitcbd69f7e4e8fbd509d36d1d272a6f7255e7a4fcd (patch)
treeb1b77f329ebce1f24dbf3b8aa75c93f742acf592 /package/system
parent367a3bb36f334d7a3583337047c0cda937e57573 (diff)
downloadupstream-cbd69f7e4e8fbd509d36d1d272a6f7255e7a4fcd.tar.gz
upstream-cbd69f7e4e8fbd509d36d1d272a6f7255e7a4fcd.tar.bz2
upstream-cbd69f7e4e8fbd509d36d1d272a6f7255e7a4fcd.zip
procd: fix default timeout for reload trigger actions
Default trigger action timeout was added to procd.sh in commit f88e3a4c0 (procd: add default timeout for reload trigger actions) However, the timeout value was not placed under the correct JSON-script array nesting level and thus did not apply. To fix this and make the timeout actually apply to the reload triggers, we place it in the correct scope, that is the per-trigger array. Fixes: f88e3a4c0abb60bb76a7678dd30dfdc8a808a2f1 Signed-off-by: Denis Osvald <denis.osvald@sartura.hr>
Diffstat (limited to 'package/system')
-rw-r--r--package/system/procd/files/procd.sh7
1 files changed, 2 insertions, 5 deletions
diff --git a/package/system/procd/files/procd.sh b/package/system/procd/files/procd.sh
index a1b9f2f0e9..6347de57ab 100644
--- a/package/system/procd/files/procd.sh
+++ b/package/system/procd/files/procd.sh
@@ -251,9 +251,8 @@ _procd_add_interface_trigger() {
json_close_array
json_close_array
- json_close_array
-
_procd_add_timeout
+ json_close_array
}
_procd_add_reload_interface_trigger() {
@@ -283,10 +282,8 @@ _procd_add_config_trigger() {
json_close_array
json_close_array
-
- json_close_array
-
_procd_add_timeout
+ json_close_array
}
_procd_add_raw_trigger() {