X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fmain.cpp;h=c2c499fbbc205503ed42da278f585dfbc60c1ad1;hb=14fff12d9df0ee30e2df4bf9d22c2e83065816df;hp=9fefa8fa2ba217ddf6c63b87d7ba56db5fb4bf2d;hpb=df316253862dc50e8e5a790d9634ef90be37badb;p=fms.git diff --git a/src/main.cpp b/src/main.cpp index 9fefa8f..c2c499f 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -5,6 +5,8 @@ #include #include #include +#include +#include #ifdef _WIN32 #include "../include/fmsservice.h" @@ -18,6 +20,7 @@ int main(int argc, char *argv[]) { + bool daemon=false; #ifdef XMEM @@ -131,5 +134,7 @@ void MainFunction() PThread::Sleep(1000); }while(!wantshutdown); + LogFile::Instance()->WriteLog(LogFile::LOGLEVEL_DEBUG,"FMS wants to shutdown"); + Shutdown(); }