version 0.3.5
[fms.git] / src / fmsapp.cpp
index 99712c5..3182443 100644 (file)
@@ -172,6 +172,11 @@ int FMSApp::main(const std::vector<std::string> &args)
 \r
                waitForTerminationRequest();\r
 \r
+               if(isInteractive()==true)\r
+               {\r
+                       std::cout << "Please wait while FMS shuts down." << std::endl << std::endl;\r
+               }\r
+\r
                logger().trace("FMSApp::main cancelling threads");\r
                m_threads.Cancel();\r
                logger().trace("FMSApp::main joining threads");\r
@@ -231,6 +236,10 @@ void FMSApp::StartThreads()
                logger().trace("FMSApp::StartThreads starting HTTPThread");\r
                m_threads.Start(new HTTPThread());\r
        }\r
+       else\r
+       {\r
+               logger().trace("FMSApp::StartThreads not starting HTTPThread");\r
+       }\r
 \r
        tempval="";\r
        Option::Instance()->Get("StartNNTP",tempval);\r
@@ -239,6 +248,10 @@ void FMSApp::StartThreads()
                logger().trace("FMSApp::StartThreads starting NNTPListener");\r
                m_threads.Start(new NNTPListener());\r
        }\r
+       else\r
+       {\r
+               logger().trace("FMSApp::StartThreads not starting NNTPListener");\r
+       }\r
 \r
        tempval="";\r
        Option::Instance()->Get("StartFreenetUpdater",tempval);\r
@@ -247,5 +260,9 @@ void FMSApp::StartThreads()
                logger().trace("FMSApp::StartThreads starting FreenetMasterThread");\r
                m_threads.Start(new FreenetMasterThread());\r
        }\r
+       else\r
+       {\r
+               logger().trace("FMSApp::StartThreads not starting FreenetMasterThread");\r
+       }\r
 \r
 }\r