From e52957e4cadc560a80ac64175b30fcc7f8c4240a Mon Sep 17 00:00:00 2001 From: Packit Date: Sep 17 2020 17:55:11 +0000 Subject: Apply patch chrony-service-helper.patch patch_name: chrony-service-helper.patch present_in_specfile: true --- diff --git a/examples/chronyd.service b/examples/chronyd.service index 289548c..7202151 100644 --- a/examples/chronyd.service +++ b/examples/chronyd.service @@ -10,6 +10,7 @@ Type=forking PIDFile=/run/chrony/chronyd.pid EnvironmentFile=-/etc/sysconfig/chronyd ExecStart=/usr/sbin/chronyd $OPTIONS +ExecStartPost=/usr/libexec/chrony-helper update-daemon PrivateTmp=yes ProtectHome=yes ProtectSystem=full diff --git a/examples/chronyd.service.service-helper b/examples/chronyd.service.service-helper new file mode 100644 index 0000000..289548c --- /dev/null +++ b/examples/chronyd.service.service-helper @@ -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