mosquitto does not seem to like the following options for persistence.
# Persistence configuration
persistence true
persistence_location /data/qos/
persistent_client_expiration 8h
The /data/qos does exist and permissions have been set.
sudo chown mosquitto:mosquitto /data/qos
The persistence configuration options are in a file persist.conf placed under /etc/mosquitto/conf.d directory. Before copying, I am stopping the broker and starting it again after copying using commands like this:
sudo service mosquitto stop
sudo service mosquitto start
The /var/log/mosquitto/mosquitto.log does not give any clue about what could be the issue.
So, what's wrong with the options provided above for persistence?
su mosquitto -c mosquitto -c /etc/mosquitto/mosquitto.conf– hardillb Jun 27 '18 at 18:46mosquittosuccessfully with/usr/bin/mosquitto -c /etc/mosquitto/mosquitto.confi.e. without the switch user. Yes,mosquittonever started; no processes are listed inps -ef | grep mosq.BTW, what is procedure in general? Stop broker, copy
– cogitoergosum Jun 28 '18 at 01:14.conffiles into/etc/mosquitto/conf.dfolder and then start broker?