mirror of
https://github.com/openwrt/packages.git
synced 2026-01-10 09:40:18 +04:00
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>
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user