You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
402 B

  1. #!/bin/sh /etc/rc.common
  2. # Copyright (C) 2019 OpenWrt.org
  3. USE_PROCD=1
  4. START=90
  5. STOP=10
  6. PROG=/usr/sbin/sockd
  7. USER="root"
  8. GROUP="root"
  9. PIDFILE=/var/run/sockd.pid
  10. CONFFILE=/etc/sockd.conf
  11. . /lib/functions.sh
  12. start_service() {
  13. procd_open_instance
  14. procd_set_param command "$PROG" -f "$CONFFILE" -p "$PIDFILE"
  15. procd_set_param user "$USER"
  16. procd_set_param pidfile "$PIDFILE"
  17. procd_close_instance
  18. }