Adding mender-monitor to a build causes errors such as the following when using the busybox version of the stat command:
Jan 14 17:33:48 ps157 mender-monitord[233]: 2022-01-14 17:33:48 [ERROR] [daemon.sh:log_file_has_been_truncated:15] The function 'log_file_has_been_truncated' requires 2 arguments. 1 given.
Jan 14 17:33:48 ps157 mender-monitord[11926]: stat: unrecognized option '--format=%s'
Jan 14 17:33:48 ps157 mender-monitord[11926]: BusyBox v1.31.1 () multi-call binary.
Jan 14 17:33:48 ps157 mender-monitord[11926]: Usage: stat [OPTIONS] FILE...
It looks like log.sh needs to be modified to use “stat -c” instead.
Drew