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
|
|
|
}
|
|
|
|
|
|
|
|
stop() {
|
|
|
|
service_stop /sbin/rpcd
|
|
|
|
}
|
2013-09-09 14:35:15 +00:00
|
|
|
|
|
|
|
reload() {
|
|
|
|
service_reload /sbin/rpcd
|
|
|
|
}
|