diff --git a/DaemonLinux.cpp b/DaemonLinux.cpp index d94ede7f..b4fd7815 100644 --- a/DaemonLinux.cpp +++ b/DaemonLinux.cpp @@ -83,7 +83,7 @@ namespace i2p // Pidfile // this code is c-styled and a bit ugly, but we need fd for locking pidfile - pidfile = i2p::util::config::GetArg("pidfile", ""); + pidfile = i2p::util::config::GetArg("-pidfile", ""); if (pidfile != "") { pidFH = open(pidfile.c_str(), O_RDWR | O_CREAT, 0600); if (pidFH < 0)