-
Book Overview & Buying
-
Table Of Contents
-
Feedback & Rating

Linux Service Management Made Easy with systemd

There are two components in the chrony
system. We have chronyd
as the daemon and chronyc
as the user interface. The chronyd
component can run in either client or server mode. First, let's look at the unit file for chonyd
.
There are a few interesting things to look at in the /lib/systemd/system/chronyd.service
file. In the [Unit]
section, we have this:
[Unit] Description=NTP client/server Documentation=man:chronyd(8) man:chrony.conf(5) After=ntpdate.service sntp.service ntpd.service Conflicts=ntpd.service systemd-timesyncd.service ConditionCapability=CAP_SYS_TIME
The Conflicts=
line indicates that we can't run multiple NTP implementations together on the same machine. If systemd detects that either ntpd
or systemd-timesyncd
is running, then chronyd
will fail to start. The ConditionCapability=
line indicates that this service runs under a non-privileged account, even though no non-privileged...