]> git.ipfire.org Git - thirdparty/chrony.git/commitdiff
examples: remove /var from PIDFile in chronyd.service
authorMiroslav Lichvar <mlichvar@redhat.com>
Mon, 6 May 2019 13:38:16 +0000 (15:38 +0200)
committerMiroslav Lichvar <mlichvar@redhat.com>
Mon, 6 May 2019 13:44:24 +0000 (15:44 +0200)
Recent systemd versions complain when loading a unit using a PIDFile
that relies on the /var/run -> /run symlink.

examples/chronyd.service

index 177741386cfc6ccdac264d6f4b252edc82df58ea..289548cbab87bc75dd23bc1364245c1061640c8e 100644 (file)
@@ -7,7 +7,7 @@ ConditionCapability=CAP_SYS_TIME
 
 [Service]
 Type=forking
-PIDFile=/var/run/chrony/chronyd.pid
+PIDFile=/run/chrony/chronyd.pid
 EnvironmentFile=-/etc/sysconfig/chronyd
 ExecStart=/usr/sbin/chronyd $OPTIONS
 PrivateTmp=yes