mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-26 17:01:14 +00:00
629073e86d
3aa81d0 file: access exec timeout via daemon ops structure 7235f34 plugin: store pointer to exec timeout value in the ops structure ccd7c0a treewide: rename exec_timeout to rpc_exec_timeout c79ef22 main: fix logic bug when not specifying a timeout option 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> (cherry picked from commits4105555115
,952b11766c
ande533fb1706
)
25 lines
400 B
Bash
Executable File
25 lines
400 B
Bash
Executable File
#!/bin/sh /etc/rc.common
|
|
|
|
START=12
|
|
|
|
USE_PROCD=1
|
|
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" ${socket:+-s "$socket"} ${timeout:+-t "$timeout"}
|
|
procd_close_instance
|
|
}
|
|
|
|
stop() {
|
|
service_stop /sbin/rpcd
|
|
}
|
|
|
|
reload() {
|
|
service_reload /sbin/rpcd
|
|
}
|