aboutsummaryrefslogtreecommitdiff
path: root/src/server/shared/Utilities/ServiceWin32.cpp
diff options
context:
space:
mode:
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;
}