Added persistence to mosquitto config

This commit is contained in:
2021-11-03 17:44:40 +01:00
parent bda0adbe5f
commit 3ac94a843a

View File

@@ -212,7 +212,11 @@
# listener 0 /tmp/mosquitto.sock # listener 0 /tmp/mosquitto.sock
# #
# listener port-number [ip address/host name/unix socket path] # listener port-number [ip address/host name/unix socket path]
listener 1884 listener 1884
persistence true
persistence_location /mosquitto/data/
log_dest file /mosquitto/log/mosquitto.log
# By default, a listener will attempt to listen on all supported IP protocol # By default, a listener will attempt to listen on all supported IP protocol
# versions. If you do not have an IPv4 or IPv6 interface you may wish to # versions. If you do not have an IPv4 or IPv6 interface you may wish to