]> git.ipfire.org Git - thirdparty/chrony.git/commitdiff
examples: avoid Unix domain socket in chrony-wait service
authorMiroslav Lichvar <mlichvar@redhat.com>
Tue, 13 Dec 2016 11:57:06 +0000 (12:57 +0100)
committerMiroslav Lichvar <mlichvar@redhat.com>
Tue, 13 Dec 2016 11:57:25 +0000 (12:57 +0100)
Use the -h option to force chronyc to use internet socket instead of
Unix domain as the access to the socket may be blocked by SELinux and
trying to open it generates SELinux warnings.

examples/chrony-wait.service

index 3f02f7105d2e25269bb58d23f48a9be3036c5e47..f629ad9b2aee18ef99e774268b60de28417024c1 100644 (file)
@@ -9,7 +9,7 @@ Wants=time-sync.target
 Type=oneshot
 # Wait up to ~10 minutes for chronyd to synchronize and the remaining
 # clock correction to be less than 0.1 seconds
-ExecStart=/usr/bin/chronyc waitsync 600 0.1 0.0 1
+ExecStart=/usr/bin/chronyc -h 127.0.0.1,::1 waitsync 600 0.1 0.0 1
 RemainAfterExit=yes
 StandardOutput=null