<div dir="ltr"><span style="color:rgb(0,0,0);font-size:14px">Hi all,</span><div style="color:rgb(0,0,0);font-size:14px"><br></div><div style="color:rgb(0,0,0);font-size:14px">I hava a timer with the fellowing setting:</div><div style="color:rgb(0,0,0);font-size:14px"><br></div><div style="color:rgb(0,0,0);font-size:14px"># cat /lib/systemd/system/updateimage.timer</div><div style="color:rgb(0,0,0);font-size:14px"><br></div><div style="color:rgb(0,0,0);font-size:14px"><div>[Unit]</div><div>Description=Update image</div><div>DefaultDependencies=false</div><div><br></div><div>[Timer]</div><div>OnCalendar=*-*-* 02:00:00</div><div>Persistent=false</div><div><br></div><div>[Install]</div><div>WantedBy=multi-user.target</div></div><div style="color:rgb(0,0,0);font-size:14px"><br></div><div style="color:rgb(0,0,0);font-size:14px">And I want the timer call the same-name service only on 02:00:00 daily.</div><div style="color:rgb(0,0,0);font-size:14px"><br></div><div style="color:rgb(0,0,0);font-size:14px">The entire system is running on an embedded box, and the system time will be set to 2008-01-01 00:00:00 after every reboot. My app running on the box will get the real time from my server and update time on the box after every booting.(I could not use NTP or systemd-timesyncd for some other reason)</div><div style="color:rgb(0,0,0);font-size:14px"><br></div><div style="color:rgb(0,0,0);font-size:14px">Here is my problem.</div><div style="color:rgb(0,0,0);font-size:14px">When my app set the system time to real time, systemd will wake up the updateimage.timer and run the updateimage.service no matter what time it it now.The log looks like this:</div><div style="color:rgb(0,0,0);font-size:14px"><br></div><div style="color:rgb(0,0,0);font-size:14px"><div>Jan  1 08:14:00 systemd[1]: xxxxxx.service: cgroup is empty</div><div><div>Apr 30 21:04:00 systemd[1]: Time has been changed<br></div><div>Apr 30 21:04:00 systemd[1]: Set up TFD_TIMER_CANCEL_ON_SET timerfd.</div></div><div>Apr 30 21:04:00 systemd[1]: Timer elapsed on updateimage.timer</div><div>Apr 30 21:04:00 systemd[1]: Trying to enqueue job updateimage.service/start/replace<br></div><div>Apr 30 21:04:00 systemd[1]: Installed new job updateimage.service/start as 9269</div></div><div style="color:rgb(0,0,0);font-size:14px"><br></div><div style="color:rgb(0,0,0);font-size:14px"><br></div><div style="color:rgb(0,0,0);font-size:14px">What I want is the timer and the same-name service only run exactly on 02:00:00 daily, but not when time changes. What should I do?</div><div style="color:rgb(0,0,0);font-size:14px"><br></div><div style="color:rgb(0,0,0);font-size:14px"><br></div><div style="color:rgb(0,0,0);font-size:14px">The systemd version : 215-17.</div><div style="color:rgb(0,0,0);font-size:14px"><br></div><div style="color:rgb(0,0,0);font-size:14px"><br></div><div style="color:rgb(0,0,0);font-size:14px">--</div><div style="color:rgb(0,0,0);font-size:14px">laborish</div></div>