Is it possible that the format of the timestamp that is loaded to /etc/timestamp does not match what is expected in timestamp-service ?
I’m getting this failure:
Jan 04 20:33:10 xx systemd: Started Timestamping service. Jan 04 20:33:11 xx systemd: Starting Timestamping service... Jan 04 20:33:11 xx load-timestamp.sh: Update systemtime from /etc/timestamp Jan 04 20:33:11 xx load-timestamp.sh: date: invalid date '0320105050201603' Jan 04 20:33:11 xx systemd: timestamp.service: main process exited, code=exited, status=1/FAILURE
I did not run this on a “Vanilla” Toradex version but I believe the bug should be there as well since this:
Inserts a timestamp with seconds to /etc/timestamp but this:
Does the following:
SYSTEMDATE=$(/bin/date -u "+%4Y%2m%2d%2H%2M") TIMESTAMP=$(/bin/cat /etc/timestamp 2>/dev/null) if [ $SYSTEMDATE -lt $TIMESTAMP ] 2>/dev/null ; then
Expects /etc/timestamp without seconds.