RE: [chrony-users] chronyd.service doesn't have Restart=on-failure?

[ Thread Index | Date Index | More chrony.tuxfamily.org/chrony-users Archives ]


Please see my other post to Miroslav for more detail.

Normally the local clock would be a reasonable backup, but AWS instances have terrible internal timekeeping. Within a day this box lost >2 hours(!) of time.

--Jamie

Jamie Gruener | Director of IT & Security, Biospatial, Inc. | 919-624-9760 | jamie.gruener@xxxxxxxxxxxxx

-----Original Message-----
From: Bill Unruh <unruh@xxxxxxxxxxxxxx> 
Sent: Monday, January 11, 2021 11:18 AM
To: chrony-users@xxxxxxxxxxxxxxxxxxxx
Subject: RE: [chrony-users] chronyd.service doesn't have Restart=on-failure?

CAUTION: This email originated from outside of Biospatial. Do not click links or open attachments unless you recognize the sender and know the content is safe.


.....
>
> But I think the lines:
>> Restart=on-failure
>> RestartSec=30s
> Should be added in the [Service] section. If chronyd fails for any reason, given how important time is, I can't think why it wouldn't try to restart..
>

Well, if, due to some bug in chrony or bad configuration, chrony dies, then it is liable to die again and again and again. Having a program do that is not a good idea. Rather the sysadmin needs to fix things. Remember that the local clock is still running, so that time is not a complete disaster.
If you really wanted to you could have a cron job run every minute, and if chrony is not running, then restart it (and send the sysadmin an email saying it had happened).

--
To unsubscribe email chrony-users-request@xxxxxxxxxxxxxxxxxxxx
with "unsubscribe" in the subject.
For help email chrony-users-request@xxxxxxxxxxxxxxxxxxxx
with "help" in the subject.
Trouble?  Email listmaster@xxxxxxxxxxxxxxxxxxxx.


--
To unsubscribe email chrony-users-request@xxxxxxxxxxxxxxxxxxxx
with "unsubscribe" in the subject.
For help email chrony-users-request@xxxxxxxxxxxxxxxxxxxx
with "help" in the subject.
Trouble?  Email listmaster@xxxxxxxxxxxxxxxxxxxx.


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/