(main): Move loginit() to after the getopt(), so the -D option will
take affect for the log file. Otherwise the server.log will be in default data directory compiled into the server.
This commit is contained in:
parent
d0295935a4
commit
6e9a69241e
1 changed files with 2 additions and 2 deletions
|
@ -118,8 +118,6 @@ main(int argc, char **argv)
|
|||
_fmode = _O_BINARY;
|
||||
#endif
|
||||
|
||||
loginit("server");
|
||||
|
||||
mainpid = getpid();
|
||||
|
||||
#if defined(_WIN32)
|
||||
|
@ -173,6 +171,8 @@ main(int argc, char **argv)
|
|||
}
|
||||
}
|
||||
|
||||
loginit("server");
|
||||
|
||||
#if defined(_WIN32)
|
||||
if ((debug || datadir_set || config_file != NULL) &&
|
||||
remove_service_set) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue