mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-23 07:22:33 +00:00
f664d560df
Drop the legacy start() and stop() procedures and define a proper reload signal action instead. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
22 lines
369 B
Bash
Executable File
22 lines
369 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
|
|
}
|
|
|
|
reload_service() {
|
|
procd_send_signal rpcd
|
|
}
|
|
|