From d682f3f2c962d4f6f986ade58cf3c1dc4adfbc67 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Sat, 23 Apr 2022 09:46:28 +0100 Subject: Only write to the pid file on boot. Being able to change this after first boot is error prone and does not work well on system-wide installs where the server needs root to write the file. Closes #566. --- src/configreader.cpp | 4 ---- 1 file changed, 4 deletions(-) (limited to 'src/configreader.cpp') diff --git a/src/configreader.cpp b/src/configreader.cpp index 81e70fae7..6cdd869ba 100644 --- a/src/configreader.cpp +++ b/src/configreader.cpp @@ -448,10 +448,6 @@ void ServerConfig::Apply(ServerConfig* old, const std::string &useruid) // Check errors before dealing with failed binds, since continuing on failed bind is wanted in some circumstances. valid = errstr.str().empty(); - // write once here, to try it out and make sure its ok - if (valid) - ServerInstance->WritePID(!old); - auto binds = ConfTags("bind"); if (binds.empty()) errstr << "Possible configuration error: you have not defined any blocks." << std::endl -- cgit v1.3.1-10-gc9f91