AdguardTeam / AdguardTeam/AdGuardHome
add procd reload to openwrt systems
- 主要言語
- TypeScript
- スター
- 36.9k
- フォーク
- 2.5k
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
### 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
コントリビューションガイド
評価
この issue はまだ評価されていません。