1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

IM port cleanup

This commit is contained in:
petr@mysql.com
2005-08-05 17:02:06 +04:00
parent 07431723c0
commit 22ccfb4d67
8 changed files with 205 additions and 219 deletions

View File

@ -5,8 +5,8 @@
IMService::IMService(void)
{
serviceName = "MySqlManager";
displayName = "MySQL Manager";
serviceName= "MySqlManager";
displayName= "MySQL Manager";
}
IMService::~IMService(void)
@ -35,13 +35,13 @@ void IMService::Log(const char *msg)
log_info(msg);
}
int HandleServiceOptions(Options options)
int HandleServiceOptions(Options options)
{
int ret_val= 0;
IMService winService;
if (options.install_as_service)
if (options.install_as_service)
{
if (winService.IsInstalled())
log_info("Service is already installed\n");
@ -59,7 +59,7 @@ int HandleServiceOptions(Options options)
log_info("Service is not installed\n");
else if (winService.Remove())
log_info("Service removed successfully\n");
else
else
{
log_info("Service failed to remove\n");
ret_val= -1;
@ -69,4 +69,3 @@ int HandleServiceOptions(Options options)
return (int)winService.Init();
return ret_val;
}