From ab0d66c2efd5a4d2f484f9c02c63f047bbec368d Mon Sep 17 00:00:00 2001 From: Evgenii Terechkov Date: Tue, 26 Jan 2016 20:03:43 +0700 Subject: [PATCH] Write service log to separate directory --- Daemon.cpp | 2 +- docs/configuration.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Daemon.cpp b/Daemon.cpp index 1415435a..c7867242 100644 --- a/Daemon.cpp +++ b/Daemon.cpp @@ -107,7 +107,7 @@ namespace i2p { if (isDaemon) { - std::string logfile_path = IsService () ? "/var/log" : i2p::util::filesystem::GetDataDir().string(); + std::string logfile_path = IsService () ? "/var/log/i2pd" : i2p::util::filesystem::GetDataDir().string(); #ifndef _WIN32 logfile_path.append("/i2pd.log"); #else diff --git a/docs/configuration.md b/docs/configuration.md index 7181cc4c..3cd21b8d 100644 --- a/docs/configuration.md +++ b/docs/configuration.md @@ -13,7 +13,7 @@ Command line options * --pidfile= - Where to write pidfile (dont write by default) * --daemon= - Enable or disable daemon mode. 1 for yes, 0 for no. * --svcctl= - Windows service management (--svcctl="install" or --svcctl="remove") -* --service= - 1 if uses system folders (/var/run/i2pd.pid, /var/log/i2pd.log, /var/lib/i2pd). +* --service= - 1 if uses system folders (/var/run/i2pd.pid, /var/log/i2pd/i2pd.log, /var/lib/i2pd). * --v6= - 1 if supports communication through ipv6, off by default * --floodfill= - 1 if router is floodfill, off by default * --bandwidth= - L if bandwidth is limited to 32Kbs/sec, O - to 256Kbs/sec, P - unlimited