From 11f7cc05072fef4e533bba9b385d0cb514153324 Mon Sep 17 00:00:00 2001 From: Miroslav Lichvar Date: Tue, 13 Dec 2016 12:57:06 +0100 Subject: [PATCH] examples: avoid Unix domain socket in chrony-wait service 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/chrony-wait.service b/examples/chrony-wait.service index 3f02f71..f629ad9 100644 --- a/examples/chrony-wait.service +++ b/examples/chrony-wait.service @@ -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