summaryrefslogtreecommitdiffstats
path: root/examples/chronyd.service
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--examples/chronyd.service18
1 files changed, 18 insertions, 0 deletions
diff --git a/examples/chronyd.service b/examples/chronyd.service
new file mode 100644
index 0000000..289548c
--- /dev/null
+++ b/examples/chronyd.service
@@ -0,0 +1,18 @@
+[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
+
+[Service]
+Type=forking
+PIDFile=/run/chrony/chronyd.pid
+EnvironmentFile=-/etc/sysconfig/chronyd
+ExecStart=/usr/sbin/chronyd $OPTIONS
+PrivateTmp=yes
+ProtectHome=yes
+ProtectSystem=full
+
+[Install]
+WantedBy=multi-user.target