From e50dc739d88feca6e0da034406034f3d3cf60ca4 Mon Sep 17 00:00:00 2001 From: Miroslav Lichvar Date: Thu, 7 Jun 2018 16:54:59 +0200 Subject: [PATCH] configure: move default pidfile to /var/run/chrony This allows chronyd to remove its pidfile on exit after dropping the root privileges in order to prevent another chronyd instance from failing to start, e.g. due to a wrong SELinux label from chronyd -q. --- configure | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/configure b/configure index 25773de..c5de5ea 100755 --- a/configure +++ b/configure @@ -108,7 +108,7 @@ For better control, use the options below. since 1970-01-01 [50*365 days ago] --with-user=USER Specify default chronyd user [root] --with-hwclockfile=PATH Specify default path to hwclock(8) adjtime file - --with-pidfile=PATH Specify default pidfile [/var/run/chronyd.pid] + --with-pidfile=PATH Specify default pidfile [/var/run/chrony/chronyd.pid] --with-rtcdevice=PATH Specify default path to RTC device [/dev/rtc] --with-sendmail=PATH Path to sendmail binary [/usr/lib/sendmail] --enable-debug Enable debugging support @@ -229,7 +229,7 @@ feat_ntp_signd=0 ntp_era_split="" default_user="root" default_hwclockfile="" -default_pidfile="/var/run/chronyd.pid" +default_pidfile="/var/run/chrony/chronyd.pid" default_rtcdevice="/dev/rtc" mail_program="/usr/lib/sendmail"