Skip to content

Commit f18752d

Browse files
author
Neil Conway
committed
Document the "register" and "unregister" pg_ctl subcommands, for use on
Windows. Patch from Magnus Hagander.
1 parent bb0aed5 commit f18752d

File tree

1 file changed

+63
-3
lines changed

1 file changed

+63
-3
lines changed

doc/src/sgml/ref/pg_ctl-ref.sgml

Lines changed: 63 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
$PostgreSQL: pgsql/doc/src/sgml/ref/pg_ctl-ref.sgml,v 1.30 2004/12/22 02:17:15 momjian Exp $
2+
$PostgreSQL: pgsql/doc/src/sgml/ref/pg_ctl-ref.sgml,v 1.31 2005/02/21 02:13:26 neilc Exp $
33
PostgreSQL documentation
44
-->
55

@@ -70,6 +70,19 @@ PostgreSQL documentation
7070
<arg choice="plain">kill</arg>
7171
<arg><replaceable>signal_name</replaceable></arg>
7272
<arg><replaceable>process_id</replaceable></arg>
73+
<sbr>
74+
<command>pg_ctl</command>
75+
<arg choice="plain">register</arg>
76+
<arg>-N <replaceable>servicename</replaceable></arg>
77+
<arg>-U <replaceable>username</replaceable></arg>
78+
<arg>-P <replaceable>password</replaceable></arg>
79+
<arg>-D <replaceable>datadir</replaceable></arg>
80+
<arg>-w</arg>
81+
<arg>-o <replaceable>options</replaceable></arg>
82+
<sbr>
83+
<command>pg_ctl</command>
84+
<arg choice="plain">unregister</arg>
85+
<arg>-N <replaceable>servicename</replaceable></arg>
7386
</cmdsynopsis>
7487
</refsynopsisdiv>
7588

@@ -143,6 +156,17 @@ PostgreSQL documentation
143156
which does not have a <application>kill</> command. Use
144157
<literal>--help</> to see a list of supported signal names.
145158
</para>
159+
160+
<para>
161+
<option>register</option> mode allows you to register a system service
162+
on <productname>Microsoft Windows</>.
163+
</para>
164+
165+
<para>
166+
<option>unregister</option> mode allows you to unregister a system service
167+
on <productname>Microsoft Windows</>, previously registered with the
168+
<option>register</option> command.
169+
</para>
146170
</refsect1>
147171

148172
<refsect1 id="app-pg-ctl-options">
@@ -253,8 +277,44 @@ PostgreSQL documentation
253277
</para>
254278
</listitem>
255279
</varlistentry>
256-
</variablelist>
257-
</para>
280+
</variablelist>
281+
</para>
282+
</refsect1>
283+
284+
<refsect1 id="app-pg-ctl-svcoptions">
285+
<title>Windows options</title>
286+
<para>
287+
<variablelist>
288+
<varlistentry>
289+
<term><option>-N <replaceable class="parameter">servicename</replaceable></option></term>
290+
<listitem>
291+
<para>
292+
Name of the system service to register. The name will be used
293+
as both the service name and the display name.
294+
</para>
295+
</listitem>
296+
</varlistentry>
297+
298+
<varlistentry>
299+
<term><option>-P <replaceable class="parameter">password</replaceable></option></term>
300+
<listitem>
301+
<para>
302+
Password for the user to start the service.
303+
</para>
304+
</listitem>
305+
</varlistentry>
306+
307+
<varlistentry>
308+
<term><option>-U <replaceable class="parameter">username</replaceable></option></term>
309+
<listitem>
310+
<para>
311+
Username for the user to start the service. For domain users, use the
312+
format <literal>DOMAIN\username</literal>.
313+
</para>
314+
</listitem>
315+
</varlistentry>
316+
</variablelist>
317+
</para>
258318
</refsect1>
259319

260320

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy