diff options
| author | 2022-04-23 09:46:28 +0100 | |
|---|---|---|
| committer | 2022-04-23 09:57:52 +0100 | |
| commit | d682f3f2c962d4f6f986ade58cf3c1dc4adfbc67 (patch) | |
| tree | 2a29ba1486a77571f564254a5be1c4dac45e8dbf /src/configreader.cpp | |
| parent | Merge branch 'insp3' into master. (diff) | |
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.
Diffstat (limited to 'src/configreader.cpp')
| -rw-r--r-- | src/configreader.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
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 <bind> blocks." << std::endl |
