]> git.ipfire.org Git - thirdparty/chrony.git/commitdiff
configure: move default pidfile to /var/run/chrony
authorMiroslav Lichvar <mlichvar@redhat.com>
Thu, 7 Jun 2018 14:54:59 +0000 (16:54 +0200)
committerMiroslav Lichvar <mlichvar@redhat.com>
Fri, 8 Jun 2018 14:44:53 +0000 (16:44 +0200)
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

index 25773deef75310774a75055a65a9306977fae8ec..c5de5ea4c9d250f898f99c8da182623b993610d5 100755 (executable)
--- 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"