diff options
author | John Crispin <john@phrozen.org> | 2020-12-11 08:07:40 +0100 |
---|---|---|
committer | Felix Fietkau <nbd@nbd.name> | 2020-12-22 19:30:26 +0100 |
commit | ceb612e463fc0dc6fbd7be66dc1a244544213c24 (patch) | |
tree | 14d23a6f77c51d907488e0eb1432d93af9db8b90 | |
parent | 4943bc5cff47a482c3010033e04c6d489a4b733c (diff) | |
download | upstream-ceb612e463fc0dc6fbd7be66dc1a244544213c24.tar.gz upstream-ceb612e463fc0dc6fbd7be66dc1a244544213c24.tar.bz2 upstream-ceb612e463fc0dc6fbd7be66dc1a244544213c24.zip |
hostapd: pass respawn settings when registering the service
When hostapd gets restarted to often/quickly will cause procd to not restart it
anymore. it will think that hapd is in a crash loop.
Signed-off-by: John Crispin <john@phrozen.org>
Signed-off-by: Felix Fietkau <nbd@nbd.name> [adjust respawn time]
-rw-r--r-- | package/network/services/hostapd/files/wpad.init | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/package/network/services/hostapd/files/wpad.init b/package/network/services/hostapd/files/wpad.init index 3198e9801f..8471796774 100644 --- a/package/network/services/hostapd/files/wpad.init +++ b/package/network/services/hostapd/files/wpad.init @@ -11,7 +11,7 @@ start_service() { mkdir -p /var/run/hostapd procd_open_instance hostapd procd_set_param command /usr/sbin/hostapd -s -g /var/run/hostapd/global - procd_set_param respawn + procd_set_param respawn 3600 1 0 procd_close_instance fi @@ -19,7 +19,7 @@ start_service() { mkdir -p /var/run/wpa_supplicant procd_open_instance supplicant procd_set_param command /usr/sbin/wpa_supplicant -n -s -g /var/run/wpa_supplicant/global - procd_set_param respawn + procd_set_param respawn 3600 1 0 procd_close_instance fi } |