diff options
author | Karl Palsson <karlp@etactica.com> | 2021-06-22 09:27:24 +0000 |
---|---|---|
committer | Karl Palsson <karlp@etactica.com> | 2021-06-22 09:27:24 +0000 |
commit | 0a33b49ff48ee89eb30183b020578e92b716cd10 (patch) | |
tree | 8a6672ecfc84f346d5bb1c93e90053ead56f1d1b | |
parent | 036079b308a6e1ba1ac690a1643264696780ae5e (diff) |
net/mosquitto: add respawn
As a daemon service, respawn is expected by default, and we have that
facility available via procd.
Suggested-in: https://github.com/openwrt/packages/pull/15272
Signed-off-by: Karl Palsson <karlp@etactica.com>
-rwxr-xr-x | net/mosquitto/files/etc/init.d/mosquitto | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/mosquitto/files/etc/init.d/mosquitto b/net/mosquitto/files/etc/init.d/mosquitto index 603b988eb..082c01ded 100755 --- a/net/mosquitto/files/etc/init.d/mosquitto +++ b/net/mosquitto/files/etc/init.d/mosquitto @@ -243,6 +243,7 @@ start_service_real() { # Makes /etc/init.d/mosquitto reload work if you edit the final file. procd_set_param file $CONF_WATCH [ "$write_pid" -eq 1 ] && procd_set_param pidfile /var/run/mosquitto.pid + procd_set_param respawn procd_close_instance } |