Re: [systemd-devel] Only start a tomcat server when you are sure that time-sync.target is online

2021-03-25 Thread Colin Guthrie
Jan Hugo Prins wrote on 25/03/2021 14:11: Hi, > Does systemd give me a different way to check if the time is in sync? > Is there a way to create this dependency without implying a restart when > ntpd restarts? https://unix.stackexchange.com/questions/388586/systemd-requires-vs-wants

Re: [systemd-devel] Only start a tomcat server when you are sure that time-sync.target is online

2021-03-25 Thread Reindl Harald
Am 25.03.21 um 15:11 schrieb Jan Hugo Prins: > Does systemd give me a different way to check if the time is in sync? > Is there a way to create this dependency without implying a restart when > ntpd restarts? https://unix.stackexchange.com/questions/388586/systemd-requires-vs-wants

[systemd-devel] Antw: [EXT] Re: Only start a tomcat server when you are sure that time-sync.target is online

2021-03-25 Thread Ulrich Windl
>>> Reindl Harald schrieb am 25.03.2021 um 15:03 in Nachricht : ... > there are really very few cases when Requires is really what someone wants there are really very few cases when someone wants Requires ;-) ___ systemd-devel mailing list systemd-

[systemd-devel] Antw: [EXT] Only start a tomcat server when you are sure that time-sync.target is online

2021-03-25 Thread Ulrich Windl
>>> Jan Hugo Prins schrieb am 25.03.2021 um 14:41 in Nachricht <227be317-1e1e-42b9-f871-70b790594...@jhprins.org>: > Hello, > > In our platform we have a dependency where we want to be sure that the > time‑sync.target is online before we start our application servers. We > do this because we real

Re: [systemd-devel] Only start a tomcat server when you are sure that time-sync.target is online

2021-03-25 Thread Jan Hugo Prins
Hi, > > Does systemd give me a different way to check if the time is in sync? > > Is there a way to create this dependency without implying a restart when > > ntpd restarts? > https://unix.stackexchange.com/questions/388586/systemd-requires-vs-wants >

Re: [systemd-devel] Only start a tomcat server when you are sure that time-sync.target is online

2021-03-25 Thread Reindl Harald
Am 25.03.21 um 14:41 schrieb Jan Hugo Prins: Our current configuration looks roughly like this: [Unit] Description=Apache Tomcat Web Application Container After=syslog.target time-sync.target Requires=time-sync.target [Service] Type=simple ExecStart=Startscripts ExecStop=Stopscript SuccessEx

[systemd-devel] Only start a tomcat server when you are sure that time-sync.target is online

2021-03-25 Thread Jan Hugo Prins
Hello, In our platform we have a dependency where we want to be sure that the time-sync.target is online before we start our application servers. We do this because we really want to be sure that the time on the application server is in sync with our NTP servers. The downside of the way we have do