summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Eisentraut <peter_e@gmx.net>2010-02-19 14:12:19 +0000
committerPeter Eisentraut <peter_e@gmx.net>2010-02-19 14:12:19 +0000
commit4c6c6b52d27fa60ddb287efb194ae77ee9385248 (patch)
treea5c0a0f7d3129f11a56488e4be0e7274a0b14839
parentad458cfe81bcefd6d8bd17ff2e42c6599d441bd6 (diff)
downloadpostgresql-4c6c6b52d27fa60ddb287efb194ae77ee9385248.tar.gz
Small corrections to message output targets in pg_ctl
- The message "server stopped" should be affected by the -s option, just like "server started" already was. - The message "could not start server" should consistently go to stderr.
-rw-r--r--src/bin/pg_ctl/pg_ctl.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/bin/pg_ctl/pg_ctl.c b/src/bin/pg_ctl/pg_ctl.c
index a24e5dc327..23d32e6469 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-2010, PostgreSQL Global Development Group
*
- * $PostgreSQL: pgsql/src/bin/pg_ctl/pg_ctl.c,v 1.118 2010/01/02 16:57:58 momjian Exp $
+ * $PostgreSQL: pgsql/src/bin/pg_ctl/pg_ctl.c,v 1.119 2010/02/19 14:12:19 petere Exp $
*
*-------------------------------------------------------------------------
*/
@@ -748,7 +748,9 @@ do_start(void)
if (test_postmaster_connection(false) == false)
{
- printf(_("could not start server\n"));
+ write_stderr(_("%s: could not start server\n"
+ "Examine the log output.\n"),
+ progname);
exit(1);
}
else
@@ -828,7 +830,7 @@ do_stop(void)
}
print_msg(_(" done\n"));
- printf(_("server stopped\n"));
+ print_msg(_("server stopped\n"));
}
}
@@ -907,7 +909,7 @@ do_restart(void)
}
print_msg(_(" done\n"));
- printf(_("server stopped\n"));
+ print_msg(_("server stopped\n"));
}
else
{