You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
20211220 mosquitto-selfRepair-logging - master branch - PR 1 of 3
Following a suggestion from @ukkopahis, this pull request proposes logging self-repair activities.
Guard messages make it clear when self-repair begins and ends:
```
[IOTstack] begin self-repair
…
[IOTstack] end self-repair
```
Between the guard messages:
* `-v` option added to `rsync`
* `-c` option added to `chown`
These cause the respective processes to log any changes they make to persistent storage.
Example. Assume `config/filter.acl` has been deleted and ownership of the `pwfile` folder and its contents has been changed to "pi:pi". Self-repair needs to restore `filter.acl` and restore the ownership to "1883:1883":
```
[IOTstack] begin self-repair
sending incremental file list
./
config/
config/filter.acl
pwfile/
sent 326 bytes received 50 bytes 752.00 bytes/sec
total size is 1,077 speedup is 2.86
changed ownership of '/mosquitto/pwfile/pwfile' to 1883:1883
[IOTstack] end self-repair
```
Signed-off-by: Phill Kelley <[email protected]>
0 commit comments