aboutsummaryrefslogtreecommitdiff
path: root/src/server/shared/Utilities/ServiceWin32.cpp
diff options
context:
space:
mode:
authorChaplain <aionthefirst@gmail.com>2014-07-15 17:46:09 +0200
committerleak <leak@bitmx.net>2014-07-15 18:15:55 +0200
commit68398a559e2264b85d8765949989f44e39ce364d (patch)
tree5524aa83c45922dcb5a05e5cc78e162233361093 /src/server/shared/Utilities/ServiceWin32.cpp
parentecde28d1c114a151c9828fff8898def5e74de4e1 (diff)
[Auth\Worldserver] Use boost to load console arguments. (Added a few style changes and cmake fix)
Conflicts: src/server/worldserver/Main.cpp
Diffstat (limited to 'src/server/shared/Utilities/ServiceWin32.cpp')
-rw-r--r--src/server/shared/Utilities/ServiceWin32.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/server/shared/Utilities/ServiceWin32.cpp b/src/server/shared/Utilities/ServiceWin32.cpp
index ec472b33f40..f4a0339d9e6 100644
--- a/src/server/shared/Utilities/ServiceWin32.cpp
+++ b/src/server/shared/Utilities/ServiceWin32.cpp
@@ -60,7 +60,7 @@ bool WinServiceInstall()
if (GetModuleFileName( 0, path, sizeof(path)/sizeof(path[0]) ) > 0)
{
SC_HANDLE service;
- std::strcat(path, " --service");
+ std::strcat(path, " --service run");
service = CreateService(serviceControlManager,
serviceName, // name of service
serviceLongName, // service name to display
@@ -119,6 +119,8 @@ bool WinServiceInstall()
}
CloseServiceHandle(serviceControlManager);
}
+
+ printf("Service installed\n");
return true;
}
@@ -143,6 +145,8 @@ bool WinServiceUninstall()
CloseServiceHandle(serviceControlManager);
}
+
+ printf("Service uninstalled\n");
return true;
}