diff options
author | Bruce Momjian <bruce@momjian.us> | 2004-08-28 21:01:38 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 2004-08-28 21:01:38 +0000 |
commit | a0a61f494dcaafe37a58cfa0c2bdab328a542f6a (patch) | |
tree | 36c7a39f03ef89346e153384308f0d73fa70ff6c /src | |
parent | cc28a275cb5096776a891f5b4d99ec03e18b8940 (diff) | |
download | postgresql-a0a61f494dcaafe37a58cfa0c2bdab328a542f6a.tar.gz postgresql-a0a61f494dcaafe37a58cfa0c2bdab328a542f6a.zip |
> > Another issue is that when installing the Postgres service with
> > "pg_ctl register -w ...." the "-w" parameter was not put in
> the registry "ImagePath"
> > value for the Postgres service. (I added it manually to test.) So I
> > suspect that "pg_ctl register" will need to be enhanced to add the
> > "-w" parameter to the registry settings.
Dave Page
Diffstat (limited to 'src')
-rw-r--r-- | src/bin/pg_ctl/pg_ctl.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/bin/pg_ctl/pg_ctl.c b/src/bin/pg_ctl/pg_ctl.c index a388fd72be9..76abf24293e 100644 --- a/src/bin/pg_ctl/pg_ctl.c +++ b/src/bin/pg_ctl/pg_ctl.c @@ -4,7 +4,7 @@ * * Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group * - * $PostgreSQL: pgsql/src/bin/pg_ctl/pg_ctl.c,v 1.25 2004/08/21 03:12:55 momjian Exp $ + * $PostgreSQL: pgsql/src/bin/pg_ctl/pg_ctl.c,v 1.26 2004/08/28 21:01:38 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -832,6 +832,9 @@ static char* pgwin32_CommandLine(bool registration) strcat(cmdLine,"\""); } + if (do_wait) + strcat(cmdLine, " -w"); + if (post_opts) { strcat(cmdLine," "); @@ -1038,7 +1041,7 @@ do_help(void) printf(_(" %s status [-D DATADIR]\n"), progname); printf(_(" %s kill SIGNALNAME PROCESSID\n"), progname); #ifdef WIN32 - printf(_(" %s register [-N servicename] [-U username] [-P password] [-D DATADIR] [-o \"OPTIONS\"]\n"), progname); + printf(_(" %s register [-N servicename] [-U username] [-P password] [-D DATADIR] [-w] [-o \"OPTIONS\"]\n"), progname); printf(_(" %s unregister [-N servicename]\n"), progname); #endif printf(_("Common options:\n")); |