man8/dbshutdown

Table of Contents

Name

dbshutdown - tell the database server to shutdown

Synopsis

dbshutdown <dbman_host> <yes>

Description

This program sends a message to dbman telling it to close client connections. This has the effect of stopping the I/O. dbman is left running thus enabling a quick restart. Normally after exiting dbman one has to wait for one minute for TCP/IP bookkeeping.

It asks for confirmation before proceeding.

Arguments

Argument processing is simpleminded.

The arguments marked required must be supplied.

Arguments marked optional are not required. However, if an optional argument is used the arguments preceeding it on the command line must be supplied (even if they are marked optional).

dbman_host - optional
The host where dbman is running.
yes - optional
If this argument is provided the user will not be asked for confirmation.

Environment Variables

DBMAN_HOST
The value of dbman_host is used if present else DMAN_HOST is used if present else the program fails.

Exit Codes

0
success
1
failure, i.e. dbman isn’t running or the hostname is wrong.

Examples

dbshutdown csdev1

Manual page revision

$Id: dbshutdown.8,v 1.2 2004/07/15 13:28:36 kitchen Exp $


Table of Contents