From 13509c0bb51cec9b0b5b522f89318a53436d6880 Mon Sep 17 00:00:00 2001 From: brain Date: Wed, 14 Dec 2005 13:17:40 +0000 Subject: Moved retrieval of PID filename into ReadConfig git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2404 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/inspircd.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/inspircd.cpp') 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) { -- cgit v1.2.3