openwrtv4/package/system/rpcd/files/rpcd.init

25 lines
400 B
Text
Raw Normal View History

#!/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
}