Skip to content

AGH Service fails to install on OpenWrt #4677

@mercyground

Description

@mercyground

Prerequisites

  • [x ] I am running the latest version
  • [ x] I checked the documentation and found no answer
  • [ x] I checked to make sure that this issue has not already been filed

Issue Details

FYI i'm reporting this on behalf of others as my existing install is fine. However, it appears since #4480 was fixed and patched in. OpenWrt installs fail to install AGH service as OpenWrt does not use systemd's update-rc. OpenWrt uses libubox+ubus+procd.

https://forum.openwrt.org/t/how-to-updated-2021-installing-adguardhome-on-openwrt-manual-and-opkg-method/113904/257

starting AdGuard Home installation script
2022/06/16 11:43:34 [info] service: control action: install
6/16/2022 11:43:34 [fatal] service: executing action "install": Failed to install AdGuard Home service: command "update-rc.d" failed: exec: "update-rc.d": executable file not found in $PATH:
cannot install AdGuardHome as a service

Attempting this manually from the fix thread :

root@OpenWrt:~# sudo update-rc.d AdGuardHome defaults
sudo: update-rc.d: command not found

Is it possible to either check on if AGH installs correctly as a service and if the systemd method fails then you fall back to init.d method? Or even check the distribution and thus pick either systemd or init.d?

Expected Behavior

Using the install script should install AGH and activate the service.

Actual Behavior

Install script executes but fails to install as OpenWrt does not have systemds update-rc.d

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions