[Commits] Rev 2929: MWL#55 : add service description in file:///H:/bzr/5.2-windows-packaging/

Vladislav Vaintroub wlad at montyprogram.com
Tue Jan 18 18:59:25 EET 2011


At file:///H:/bzr/5.2-windows-packaging/

------------------------------------------------------------
revno: 2929
revision-id: wlad at montyprogram.com-20110118165925-rn4d85im7hu7pk01
parent: wlad at montyprogram.com-20110118162502-twiq3v11p3bpxgqb
committer: Vladislav Vaintroub <wlad at montyprogram.com>
branch nick: 5.2-windows-packaging
timestamp: Tue 2011-01-18 17:59:25 +0100
message:
  MWL#55 : add service description
-------------- next part --------------
=== modified file 'sql/mysql_install_db.cc'
--- a/sql/mysql_install_db.cc	2011-01-13 15:01:00 +0000
+++ b/sql/mysql_install_db.cc	2011-01-18 16:59:25 +0000
@@ -318,7 +318,7 @@
   }
 
   /* Create the service. */
-  sc_service = CreateServiceA( sc_manager, opt_service,  opt_service,
+  sc_service = CreateServiceA(sc_manager, opt_service,  opt_service,
     SERVICE_ALL_ACCESS, SERVICE_WIN32_OWN_PROCESS, SERVICE_AUTO_START, 
     SERVICE_ERROR_NORMAL, buf, NULL, NULL, NULL, opt_os_user, opt_os_password);
 
@@ -328,6 +328,8 @@
     die("CreateService failed (%d)", GetLastError());
   }
 
+  SERVICE_DESCRIPTION sd = { "MariaDB database server" };
+  ChangeServiceConfig2(sc_service, SERVICE_CONFIG_DESCRIPTION, &sd);
   CloseServiceHandle(sc_service); 
   CloseServiceHandle(sc_manager);
   return 0;



More information about the commits mailing list