Symfoware Open System
---start, stop, load configuration files
Initialization
Pg_ctl INIT[DB] [-S] [-D datadir] [-O initdb-options]
This command is equivalent to recreating an instance using the Initdb command.
Start:
Pg_ctl start [-W] [-t seconds] [-S] [-D datadir] [-l filename] [-O options] [-P path] [-c]
Stop it:
Pg_ctl stop [-W] [-t seconds] [-S] [-D datadir] [-M s[mart] | f[ast] | i[mmediate]
Restart:
Pg_ctl restart [-W] [-t seconds] [-S] [-D datadir] [-c] [-M s[mart] | f[ast] | i[mmediate]] [-O options]
Equivalent to Stop->start.
Load configuration file (postgresql.conf, pg_hba.conf ... ):
Pg_ctl Reload [-S] [-D DataDir]
View instance Run status
PG_CTL Status [-D DataDir]
OPTION
-C
--core-file
When the service crash, the core file is allowed to be generated, and the exception information is stored in this file;
-D DataDir
--pgdata DataDir
The folder where the DB instance resides;
-L filename
--log filename
Log storage file, file Umask set to 077, so other users can not read;
-M mode
--mode mode
The mode used when stopping a DB instance, according to the degree of barbarism (small to large) respectively smart (default), Fast,immediate;
-O Options
Declares the option to pass directly to postmaster.
Parameters are usually enclosed in single or double quotes to ensure that they are passed as a whole.
-O initdb-options
INITDB option;
-P Path
Declares the location of the postmaster executable file. By default, postmaster is removed from the same directory as PG_CTL, and if not, it is the installation directory that is written dead. It is not necessary to use this option unless you want to do something special and get a similar error like not finding postmaster.
-S
--silent
Only error messages are displayed, other information is not displayed;
-W
When starting or stopping an instance, try multiple times and stop the operation by default for this mode;
The stop operation continues to attempt until the service PID is removed;
Returns the start or stop operation result code;
-W
In contrast to W, do not make multiple attempts to start and restart the default for this mode.
File:
Postmaster.pid
This file exists in the data directory to help PG_CTL determine whether the server is currently running.
Postmaster.opts.default
If the file exists in the data directory, Pg_ctl (in start mode) passes the contents of the file as an option passed to the Postmaster command, unless overridden by the-o option.
Postmaster.opts
If the file exists in the data directory, Pg_ctl (in start mode) passes the contents of the file as an option passed to the Postmaster command, unless overridden by the-o option. The contents of this file will also be displayed in the status mode.
Postgresql.conf
This file is parsed in the data directory to find the appropriate port to use with the Psql (W in the start mode). )
Reference: http://man.chinaunix.net/database/postgresql_8.0_CN/app-pg-ctl.html
This article is from the "Night" blog, be sure to keep this source http://icyore.blog.51cto.com/8486958/1596293
"Symfoware OPEN" Start-shutdown-Restart service