summaryrefslogtreecommitdiff
path: root/win/win32service.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2008-08-21 11:21:46 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2008-08-21 11:21:46 +0000
commit839ff9b5213977c8dfc74d605c7ceaace89fa66f (patch)
tree42740eca4a783445c4e345d5d50b8774895e9f6e /win/win32service.cpp
parent2c5db1dfcb326fb6665b40c0bf2613257ebaf3d5 (diff)
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
Diffstat (limited to 'win/win32service.cpp')
-rw-r--r--win/win32service.cpp8
1 files changed, 4 insertions, 4 deletions
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().