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
mosquitto
successfully with/usr/bin/mosquitto -c /etc/mosquitto/mosquitto.conf
i.e. without the switch user. Yes,mosquitto
never started; no processes are listed inps -ef | grep mosq
. BTW, what is procedure in general? Stop broker, copy.conf
files into/etc/mosquitto/conf.d
folder and then start broker?