2013-09-02 15:36:51 +00:00
|
|
|
#!/bin/sh /etc/rc.common
|
|
|
|
|
|
|
|
START=12
|
|
|
|
|
2013-09-17 21:45:30 +00:00
|
|
|
USE_PROCD=1
|
|
|
|
NAME=rpcd
|
|
|
|
PROG=/sbin/rpcd
|
2013-09-02 15:36:51 +00:00
|
|
|
|
2013-09-17 21:45:30 +00:00
|
|
|
start_service() {
|
2018-11-22 13:42:14 +00:00
|
|
|
local socket=$(uci -q get rpcd.@rpcd[0].socket)
|
|
|
|
local timeout=$(uci -q get rpcd.@rpcd[0].timeout)
|
|
|
|
|
2013-09-17 21:45:30 +00:00
|
|
|
procd_open_instance
|
2018-11-22 13:42:14 +00:00
|
|
|
procd_set_param command "$PROG" ${socket:+-s "$socket"} ${timeout:+-t "$timeout"}
|
2013-09-17 21:45:30 +00:00
|
|
|
procd_close_instance
|
2013-09-02 15:36:51 +00:00
|
|
|
}
|
|
|
|
|
2019-06-06 09:27:11 +00:00
|
|
|
reload_service() {
|
|
|
|
procd_send_signal rpcd
|
2013-09-02 15:36:51 +00:00
|
|
|
}
|
2013-09-09 14:35:15 +00:00
|
|
|
|