|
|
|
@ -213,7 +213,7 @@ bool AppInit2(int argc, char* argv[])
@@ -213,7 +213,7 @@ bool AppInit2(int argc, char* argv[])
|
|
|
|
|
#ifdef GUI |
|
|
|
|
" -server \t\t " + _("Accept command line and JSON-RPC commands") + "\n" + |
|
|
|
|
#endif |
|
|
|
|
#ifndef WIN32 |
|
|
|
|
#if !defined(WIN32) && !defined(GUI) |
|
|
|
|
" -daemon \t\t " + _("Run in the background as a daemon and accept commands") + "\n" + |
|
|
|
|
#endif |
|
|
|
|
" -testnet \t\t " + _("Use the test network") + "\n" + |
|
|
|
@ -253,7 +253,7 @@ bool AppInit2(int argc, char* argv[])
@@ -253,7 +253,7 @@ bool AppInit2(int argc, char* argv[])
|
|
|
|
|
fTestNet = GetBoolArg("-testnet"); |
|
|
|
|
fDebug = GetBoolArg("-debug"); |
|
|
|
|
|
|
|
|
|
#ifndef WIN32 |
|
|
|
|
#if !defined(WIN32) && !defined(GUI) |
|
|
|
|
fDaemon = GetBoolArg("-daemon"); |
|
|
|
|
#else |
|
|
|
|
fDaemon = false; |
|
|
|
@ -284,7 +284,7 @@ bool AppInit2(int argc, char* argv[])
@@ -284,7 +284,7 @@ bool AppInit2(int argc, char* argv[])
|
|
|
|
|
} |
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
#ifndef WIN32 |
|
|
|
|
#if !defined(WIN32) && !defined(GUI) |
|
|
|
|
if (fDaemon) |
|
|
|
|
{ |
|
|
|
|
// Daemonize
|
|
|
|
|