|
1 | 1 | <!--
|
2 |
| -$PostgreSQL: pgsql/doc/src/sgml/ref/pg_ctl-ref.sgml,v 1.50 2010/04/08 01:39:37 rhaas Exp $ |
| 2 | +$PostgreSQL: pgsql/doc/src/sgml/ref/pg_ctl-ref.sgml,v 1.51 2010/06/22 16:19:36 momjian Exp $ |
3 | 3 | PostgreSQL documentation
|
4 | 4 | -->
|
5 | 5 |
|
@@ -134,16 +134,19 @@ PostgreSQL documentation
|
134 | 134 |
|
135 | 135 | <para>
|
136 | 136 | In <option>start</option> mode, a new server is launched. The
|
137 |
| - server is started in the background, and standard input is attached to |
138 |
| - <filename>/dev/null</filename>. The standard output and standard |
139 |
| - error are either appended to a log file (if the <option>-l</option> |
140 |
| - option is used), or redirected to <application>pg_ctl</application>'s |
141 |
| - standard output (not standard error). If no log file is chosen, the |
142 |
| - standard output of <application>pg_ctl</application> should be redirected |
143 |
| - to a file or piped to another process such as a log rotating program |
144 |
| - like <application>rotatelogs</>; otherwise <command>postgres</command> |
145 |
| - will write its output to the controlling terminal (from the background) |
146 |
| - and will not leave the shell's process group. |
| 137 | + server is started in the background, and standard input is attached |
| 138 | + to <filename>/dev/null</filename> (or <literal>nul</> on Windows). |
| 139 | + On Unix-like systems, by default, the server's standard output and |
| 140 | + standard error are send to <application>pg_ctl</application>'s |
| 141 | + standard output (not standard error). The standard output of |
| 142 | + <application>pg_ctl</application> should then be redirected to a |
| 143 | + file or piped to another process such as a log rotating program |
| 144 | + like <application>rotatelogs</>; otherwise <command>postgres</command> |
| 145 | + will write its output to the controlling terminal (from the |
| 146 | + background) and will not leave the shell's process group. On |
| 147 | + Windows, by default the server's standard output and standard error |
| 148 | + are sent to the terminal. These default behaviors can be changed |
| 149 | + by using <option>-l</option> to append server output to a log file. |
147 | 150 | </para>
|
148 | 151 |
|
149 | 152 | <para>
|
|
0 commit comments