]> granicus.if.org Git - pgbouncer/commitdiff
win32: improve service description
authorMarko Kreen <markokr@gmail.com>
Fri, 30 Jan 2009 19:42:03 +0000 (19:42 +0000)
committerMarko Kreen <markokr@gmail.com>
Fri, 30 Jan 2009 19:42:03 +0000 (19:42 +0000)
Hiroshi Saito

win32/win32support.c

index 61a24567de1342395aa5d7d6e93efc22e0351241..2726ee50186e056f0b2f39a1a2b1689616db4f00 100644 (file)
@@ -38,6 +38,8 @@ static SERVICE_STATUS svcStatus = {
  */
 static char *servicename = "pgbouncer";
 
+static char *serviceDescription = "Lightweight connection pooler for PostgreSQL.";
+
 /* custom help string for win32 exe */
 static const char *usage_str =
 "Usage: %s [OPTION]... config.ini\n"
@@ -243,8 +245,8 @@ static void RegisterService(void)
                exit(1);
        }
 
-       /* set cmdline as desc, makes details more visible */
-       sd.lpDescription = cmdline;
+       /* explain the service purpose */
+       sd.lpDescription = serviceDescription;
        ChangeServiceConfig2(service, SERVICE_CONFIG_DESCRIPTION, &sd);
 
        CloseServiceHandle(service);