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.

21 lines
437 B

  1. #!/bin/sh /etc/rc.common
  2. PROG=/usr/bin/AdGuardHome
  3. WORK_DIR=/tmp/adguardhome
  4. USE_PROCD=1
  5. # starts after network starts
  6. START=21
  7. # stops before networking stops
  8. STOP=89
  9. start_service() {
  10. [ -d "$WORK_DIR" ] || mkdir -m 0755 -p "$WORK_DIR"
  11. procd_open_instance
  12. procd_set_param command "$PROG" -c /etc/adguardhome.yaml -w "$WORK_DIR" --no-check-update
  13. procd_set_param stdout 1
  14. procd_set_param stderr 1
  15. procd_close_instance
  16. }