From 839ff9b5213977c8dfc74d605c7ceaace89fa66f Mon Sep 17 00:00:00 2001 From: brain Date: Thu, 21 Aug 2008 11:21:46 +0000 Subject: now works 'enough' to progress further. Can start and stop the service and it accepts connections. NOTE: It will not function as local service. Needs to be possibly set as networkservice. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10194 e03df62e-2008-0410-955e-edbf42e46eb7 --- win/win32service.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'win') diff --git a/win/win32service.cpp b/win/win32service.cpp index 100afba73..2d9361f22 100644 --- a/win/win32service.cpp +++ b/win/win32service.cpp @@ -42,8 +42,8 @@ DWORD WINAPI WorkerThread(LPDWORD param) // *** REAL MAIN HERE *** char modname[MAX_PATH]; GetModuleFileName(NULL, modname, sizeof(modname)); - char* argv[] = { modname, "--nofork" }; - smain(1, argv); + char* argv[] = { modname, "--nofork", "--debug" }; + smain(3, argv); KillService(); return 0; } @@ -244,7 +244,7 @@ void RemoveService(void) int main(int argc, char** argv) { /* Check for parameters */ - /*if (argc > 0) + if (argc > 1) { if (!_stricmp(argv[1], "--installservice")) { @@ -256,7 +256,7 @@ int main(int argc, char** argv) RemoveService(); return 0; } - }*/ + } /* First, check if the service is installed. * if it is not, just call smain(). -- cgit v1.2.3