mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-03-07 06:09:42 +00:00
use system folders if run as service
This commit is contained in:
@@ -74,7 +74,7 @@ namespace i2p
|
||||
}
|
||||
|
||||
// Pidfile
|
||||
pidfile = i2p::util::filesystem::GetDataDir().string();
|
||||
pidfile = IsService () ? "/var/run" : i2p::util::filesystem::GetDataDir().string();
|
||||
pidfile.append("/i2pd.pid");
|
||||
pidFilehandle = open(pidfile.c_str(), O_RDWR | O_CREAT, 0600);
|
||||
if (pidFilehandle == -1)
|
||||
|
||||
Reference in New Issue
Block a user