Read chrony.conf before checking/writing pid file
This fixes the pidfile directive.
This commit is contained in:
parent
a080d00352
commit
9775f3a030
1 changed files with 2 additions and 2 deletions
4
main.c
4
main.c
|
@ -261,6 +261,8 @@ int main
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
CNF_ReadFile(conf_file);
|
||||||
|
|
||||||
#ifndef SYS_WINNT
|
#ifndef SYS_WINNT
|
||||||
if (getuid() != 0) {
|
if (getuid() != 0) {
|
||||||
/* This write to the terminal is OK, it comes before we turn into a daemon */
|
/* This write to the terminal is OK, it comes before we turn into a daemon */
|
||||||
|
@ -288,8 +290,6 @@ int main
|
||||||
write_lockfile();
|
write_lockfile();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
CNF_ReadFile(conf_file);
|
|
||||||
|
|
||||||
if (do_init_rtc) {
|
if (do_init_rtc) {
|
||||||
RTC_TimePreInit();
|
RTC_TimePreInit();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue