update info about pidfile defaults (closes #1136)

Signed-off-by: R4SAS <r4sas@i2pmail.org>
This commit is contained in:
R4SAS 2020-04-29 16:55:25 +03:00
parent 3d9c844dca
commit 16b992d705
No known key found for this signature in database
GPG Key ID: 66F6C87B98EBCFE2
3 changed files with 5 additions and 6 deletions

View File

@ -15,7 +15,7 @@
## Default: ~/.i2pd/tunnels.d or /var/lib/i2pd/tunnels.d
# tunnelsdir = /var/lib/i2pd/tunnels.d
## Where to write pidfile (don't write by default)
## Where to write pidfile (default: i2pd.pid, not used in Windows)
# pidfile = /run/i2pd.pid
## Logging configuration section

View File

@ -167,7 +167,7 @@ namespace i2p
sigaction(SIGABRT, &sa, 0);
sigaction(SIGTERM, &sa, 0);
sigaction(SIGINT, &sa, 0);
sigaction(SIGPIPE, &sa, 0);
sigaction(SIGPIPE, &sa, 0);
return Daemon_Singleton::start();
}
@ -175,7 +175,6 @@ namespace i2p
bool DaemonLinux::stop()
{
i2p::fs::Remove(pidfile);
return Daemon_Singleton::stop();
}

View File

@ -7,18 +7,18 @@ namespace i2p
{
namespace qt
{
int RunQT (int argc, char* argv[]);
int RunQT (int argc, char* argv[]);
}
}
int main( int argc, char* argv[] )
{
return i2p::qt::RunQT (argc, argv);
return i2p::qt::RunQT (argc, argv);
}
#else
int main( int argc, char* argv[] )
{
if (Daemon.init(argc, argv))
if (Daemon.init(argc, argv))
{
if (Daemon.start())
Daemon.run ();