summaryrefslogtreecommitdiffstats
path: root/package/system/rpcd/files/rpcd.init
blob: 77ebcbe6cb7b57cf80fb73b782007ab318ef9a78 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/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
}

service_running() {
	procd_running rpcd
}