1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-28 23:42:10 +03:00

Allow pg_ctl to register the service in either AUTO or DEMAND start type

Author: Quan Zongliang
Documentation updates by David Fetter
This commit is contained in:
Alvaro Herrera
2010-10-15 14:30:03 -03:00
parent 0e7f7071e8
commit 0c9b166db5
2 changed files with 59 additions and 9 deletions

View File

@ -102,6 +102,12 @@ PostgreSQL documentation
<arg>-U <replaceable>username</replaceable></arg>
<arg>-P <replaceable>password</replaceable></arg>
<arg>-D <replaceable>datadir</replaceable></arg>
<arg>-S
<group choice="plain">
<arg>a[uto]</arg>
<arg>d[emand]</arg>
</group>
</arg>
<arg>-w</arg>
<arg>-t <replaceable>seconds</replaceable></arg>
<arg>-o <replaceable>options</replaceable></arg>
@ -203,7 +209,9 @@ PostgreSQL documentation
<para>
<option>register</option> mode allows you to register a system service
on <productname>Microsoft Windows</>.
on <productname>Microsoft Windows</>. The <option>-S</option> option
allows selection of service start type, either <quote>auto</quote> (start
service automatically on system startup), on <quote>demand</quote>.
</para>
<para>
@ -261,7 +269,7 @@ PostgreSQL documentation
Specifies the shutdown mode. <replaceable>mode</replaceable>
can be <literal>smart</literal>, <literal>fast</literal>, or
<literal>immediate</literal>, or the first letter of one of
these three.
these three. If this is omitted, <literal>smart</literal> is used.
</para>
</listitem>
</varlistentry>
@ -384,6 +392,18 @@ PostgreSQL documentation
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><option>-S <replaceable class="parameter">start-type</replaceable></option></term>
<listitem>
<para>
Start type of the system service to register. start-type can
be <literal>auto</literal>, or <literal>demand</literal>, or
the first letter of one of these two. If this is omitted,
<literal>auto</literal> is used.
</para>
</listitem>
</varlistentry>
</variablelist>
</refsect2>