AdguardTeam / AdguardTeam/AdGuardHome

add procd reload to openwrt systems

Offen
#7,159 3 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
compatibility feature request
Vorherrschende Sprache
TypeScript
Sterne
36.9k
Forks
2.5k
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

### Prerequisites

- [X] I have checked the [Wiki](https://github.com/AdguardTeam/AdGuardHome/wiki) and [Discussions](https://github.com/AdguardTeam/AdGuardHome/discussions) and found no answer

- [X] I have searched other issues and found no duplicates

- [X] I want to request a feature or enhancement and not ask a question

### The problem

currently the behavior of the init.d service is to die and not respawn when something unexpected happens such as a omm crash or other issue. openwrt lacks systemd so services can't restart them selves by default adding the proper procd to the init.d/adguardhome service addresses that

### Proposed solution

add the following line to the init.d service so the service automatically attempts to restart
after a crash or oom termination.
after the following line:
procd_set_param stderr 1
add the following line:
procd_set_param respawn ${respawn_threshold:-3600} ${respawn_timeout:-5} ${respawn_retry:-5}
### Alternatives considered and additional information

ideally the respawn_threshhold should be equal or less then the minimum TTL to avoid interruptions in connectivity but this is a nice to have not a requirement

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.