From 9775f3a030e43c8e6852889d2f135adfc77cc9d1 Mon Sep 17 00:00:00 2001 From: Miroslav Lichvar Date: Thu, 20 May 2010 16:10:51 +0200 Subject: [PATCH] Read chrony.conf before checking/writing pid file This fixes the pidfile directive. --- main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.c b/main.c index 7da6250..9368508 100644 --- a/main.c +++ b/main.c @@ -261,6 +261,8 @@ int main } } + CNF_ReadFile(conf_file); + #ifndef SYS_WINNT if (getuid() != 0) { /* This write to the terminal is OK, it comes before we turn into a daemon */ @@ -288,8 +290,6 @@ int main write_lockfile(); #endif - CNF_ReadFile(conf_file); - if (do_init_rtc) { RTC_TimePreInit(); }