summaryrefslogtreecommitdiffstats
path: root/debian/chrony.service
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--debian/chrony.service20
1 files changed, 20 insertions, 0 deletions
diff --git a/debian/chrony.service b/debian/chrony.service
new file mode 100644
index 0000000..3e4451a
--- /dev/null
+++ b/debian/chrony.service
@@ -0,0 +1,20 @@
+[Unit]
+Description=chrony, an NTP client/server
+Documentation=man:chronyd(8) man:chronyc(1) man:chrony.conf(5)
+Conflicts=systemd-timesyncd.service openntpd.service ntp.service ntpsec.service
+After=network.target
+ConditionCapability=CAP_SYS_TIME
+
+[Service]
+Type=forking
+PIDFile=/run/chronyd.pid
+EnvironmentFile=-/etc/default/chrony
+ExecStart=/usr/sbin/chronyd $DAEMON_OPTS
+ExecStartPost=-/usr/lib/chrony/chrony-helper update-daemon
+PrivateTmp=yes
+ProtectHome=yes
+ProtectSystem=full
+
+[Install]
+Alias=chronyd.service
+WantedBy=multi-user.target