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:
parent
036079b308
commit
0a33b49ff4
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue