Log_init(false);
if (pidfile != NULL)
lockfile(pidfile);
-
- switch_user();
-
- /* Reopen log file. If user switch results in access denied, we catch
- * it early.
- */
- Log_reset();
}
else Log_init(true);
setscheduler();
#endif
+ switch_user();
+ /* Reopen log file. If user switch results in access denied, we catch
+ * it early.
+ */
+ Log_reset();
+
Server_run();
#ifdef USE_SHAREDMEMORY_API