AdguardTeam / AdguardTeam/AdGuardHome
add procd reload to openwrt systems
- Lingua principale
- TypeScript
- Stelle
- 36.9k
- Fork
- 2.5k
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
### 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
Guida per i contributori
Apri la guida per i contributori
Valutazione
Questa issue non è ancora stata valutata.