From: Miroslav Lichvar Date: Tue, 13 Dec 2016 11:57:06 +0000 (+0100) Subject: examples: avoid Unix domain socket in chrony-wait service X-Git-Tag: 3.0-pre2~10 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=11f7cc05072fef4e533bba9b385d0cb514153324;p=thirdparty%2Fchrony.git 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. --- diff --git a/examples/chrony-wait.service b/examples/chrony-wait.service index 3f02f710..f629ad9b 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