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. --- include/inspircd.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'include') diff --git a/include/inspircd.h b/include/inspircd.h index 477b60757..1fb73d19d 100644 --- a/include/inspircd.h +++ b/include/inspircd.h @@ -473,9 +473,8 @@ public: std::string GetVersionString(bool getFullVersion = false); /** Attempt to write the process id to a given file - * @param exitonfail If true and the PID fail cannot be written log to stdout and exit, otherwise only log on failure */ - void WritePID(bool exitonfail); + void WritePID(); /** This constructor initialises all the subsystems and reads the config file. * @param argc The argument count passed to main() -- cgit v1.3.1-10-gc9f91