summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/inspircd.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/inspircd.cpp b/src/inspircd.cpp
index 23ce90109..0e4e976c4 100644
--- a/src/inspircd.cpp
+++ b/src/inspircd.cpp
@@ -389,6 +389,10 @@ void ReadConfig(bool bail, userrec* user)
log(DEFAULT,"Applying K lines, Q lines and Z lines...");
apply_lines(APPLY_ALL);
+ ConfValue("pid","file",0,Config->PID,&Config->config_f);
+ // write once here, to try it out and make sure its ok
+ WritePID(Config->PID);
+
log(DEFAULT,"Done reading configuration file, InspIRCd is now starting.");
if (!bail)
{
@@ -2232,10 +2236,6 @@ int InspIRCd(char** argv, int argc)
printf("\n");
startup_time = time(NULL);
-
- ConfValue("pid","file",0,Config->PID,&Config->config_f);
- // write once here, to try it out and make sure its ok
- WritePID(PID);
if (!Config->nofork)
{