aboutsummaryrefslogtreecommitdiffstats
path: root/package/system/rpcd/files/rpcd.init
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2018-11-22 14:42:14 +0100
committerJo-Philipp Wich <jo@mein.io>2018-11-22 14:43:36 +0100
commit41055551151e12abf8efe710efa4dc025a7b7b6a (patch)
treed2f04e9a361b2c063223850545f5187021faace7 /package/system/rpcd/files/rpcd.init
parent2ac1a57677ce4e21513dca2a8efab1eb6e0a9c58 (diff)
downloadupstream-41055551151e12abf8efe710efa4dc025a7b7b6a.tar.gz
upstream-41055551151e12abf8efe710efa4dc025a7b7b6a.tar.bz2
upstream-41055551151e12abf8efe710efa4dc025a7b7b6a.zip
rpcd: update to latest Git head
2cc4b99 file: use global exec timeout instead of own hardcoded limit ecd1660 exec: increase maximum execution time to 120s Also expose the socket and timeout options in /etc/config/rpcd for easier use. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'package/system/rpcd/files/rpcd.init')
-rwxr-xr-xpackage/system/rpcd/files/rpcd.init5
1 files changed, 4 insertions, 1 deletions
diff --git a/package/system/rpcd/files/rpcd.init b/package/system/rpcd/files/rpcd.init
index 98b633365b..0a37ee19f9 100755
--- a/package/system/rpcd/files/rpcd.init
+++ b/package/system/rpcd/files/rpcd.init
@@ -7,8 +7,11 @@ NAME=rpcd
PROG=/sbin/rpcd
start_service() {
+ local socket=$(uci -q get rpcd.@rpcd[0].socket)
+ local timeout=$(uci -q get rpcd.@rpcd[0].timeout)
+
procd_open_instance
- procd_set_param command "$PROG"
+ procd_set_param command "$PROG" ${socket:+-s "$socket"} ${timeout:+-t "$timeout"}
procd_close_instance
}