1
0

rpcd.init 411 B

123456789101112131415161718192021222324
  1. #!/bin/sh /etc/rc.common
  2. START=12
  3. USE_PROCD=1
  4. NAME=rpcd
  5. PROG=/sbin/rpcd
  6. start_service() {
  7. local socket=$(uci -q get rpcd.@rpcd[0].socket)
  8. local timeout=$(uci -q get rpcd.@rpcd[0].timeout)
  9. procd_open_instance
  10. procd_set_param command "$PROG" ${socket:+-s "$socket"} ${timeout:+-t "$timeout"}
  11. procd_close_instance
  12. }
  13. reload_service() {
  14. procd_send_signal rpcd
  15. }
  16. service_running() {
  17. procd_running rpcd
  18. }