From: Karl Palsson Date: Tue, 22 Jun 2021 09:27:24 +0000 (+0000) Subject: net/mosquitto: add respawn X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=0a33b49ff48ee89eb30183b020578e92b716cd10;p=openwrt-packages.git 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 --- 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 }