fwtool: do not strip metadata if extracting signature
[openwrt/.git] / package / system / rpcd / files / rpcd.init
1 #!/bin/sh /etc/rc.common
2
3 START=12
4
5 USE_PROCD=1
6 NAME=rpcd
7 PROG=/sbin/rpcd
8
9 start_service() {
10         local socket=$(uci -q get rpcd.@rpcd[0].socket)
11         local timeout=$(uci -q get rpcd.@rpcd[0].timeout)
12
13         procd_open_instance
14         procd_set_param command "$PROG" ${socket:+-s "$socket"} ${timeout:+-t "$timeout"}
15         procd_close_instance
16 }
17
18 stop() {
19         service_stop /sbin/rpcd
20 }
21
22 reload() {
23         service_reload /sbin/rpcd
24 }