mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-03 23:25:07 -05:00
Read chrony.conf before checking/writing pid file
This fixes the pidfile directive.
This commit is contained in:
4
main.c
4
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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user