aboutsummaryrefslogtreecommitdiffstats
path: root/package/system/rpcd/files/rpcd.init
diff options
context:
space:
mode:
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
}