OpenWrt: can't install the service #1253

Closed
opened 2026-03-04 01:10:38 -05:00 by deekerman · 3 comments
Owner

Originally created by @szolin on GitHub (Jan 13, 2020).

Originally assigned to: @szolin on GitHub.

OpenWrt 19.07-SNAPSHOT

The are many bugs:

  1. -s install correctly creates the service file in /etc/init.d but fails to start the service, because service script doesn't exist.
  2. /etc/init.d/AGH status always shows Stopped because ps PID command doesn't work.
    2.1 /etc/init.d/AGH stop doesn't work
  3. The service file isn't based on standard /etc/rc.common, that's why standard commands like enable|disable don't work.
  4. There's no boot() section - the service won't start on boot.
    4.1 There's no file in /etc/rc.d
Originally created by @szolin on GitHub (Jan 13, 2020). Originally assigned to: @szolin on GitHub. OpenWrt 19.07-SNAPSHOT The are many bugs: 1. `-s install` correctly creates the service file in /etc/init.d but fails to start the service, because `service` script doesn't exist. 2. `/etc/init.d/AGH status` always shows Stopped because `ps PID` command doesn't work. 2.1 `/etc/init.d/AGH stop` doesn't work 3. The service file isn't based on standard `/etc/rc.common`, that's why standard commands like `enable|disable` don't work. 4. There's no `boot()` section - the service won't start on boot. 4.1 There's no file in `/etc/rc.d`
deekerman 2026-03-04 01:10:38 -05:00
Author
Owner

@ameshkov commented on GitHub (Jan 13, 2020):

Might be useful: https://github.com/kardianos/service/issues/116

@ameshkov commented on GitHub (Jan 13, 2020): Might be useful: https://github.com/kardianos/service/issues/116
Author
Owner

@WildByDesign commented on GitHub (Jan 15, 2020):

@szolin @ameshkov I am curious about testing the latest commits for this because I use AGH primarily on OpenWrt. I don't use Docker though and have not compiled from source code yet. I do have a couple of questions regarding beta builds:

How do I know which commits made it into the latest beta build?
Or more specifically, which branch is the beta build built from?

Thank you.

@WildByDesign commented on GitHub (Jan 15, 2020): @szolin @ameshkov I am curious about testing the latest commits for this because I use AGH primarily on OpenWrt. I don't use Docker though and have not compiled from source code yet. I do have a couple of questions regarding beta builds: How do I know which commits made it into the latest beta build? Or more specifically, which branch is the beta build built from? Thank you.
Author
Owner

@ameshkov commented on GitHub (Jan 15, 2020):

@WildByDesign hi, beta builds are always built from the master branch.

Here's how version is composed:

version=`git describe --abbrev=4 --dirty --always --tags`

It contains the latest tag name + the last commit hash.

@ameshkov commented on GitHub (Jan 15, 2020): @WildByDesign hi, beta builds are always built from the master branch. Here's how version is composed: ``` version=`git describe --abbrev=4 --dirty --always --tags` ``` It contains the latest tag name + the last commit hash.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/AdGuardHome#1253
No description provided.