resref  restore_ver

Chapter 12: Using jagtool and jagant

restart

Description

Terminates and restarts the server process to which you are connected.

Syntax

Local mode support: No.

Command line:

restart connect-args

Where connect-args is a list of arguments to specify a server connection, as described in “Using connected mode”.

Ant build file:

<jag_restart />

Returns

Return value

Indicates

0

The command ran successfully; the result is true/success.

2

The command did not run successfully; an exception was thrown.

Examples

Example 1

This example connects to the server “eclipse” on port 9005, with the user name “jagadmin” and the password “jagpass,” and restarts the server.

All jagant commands depend on jag_connect. See “Using the jag_connect command” for more information about jag_connect.

See also

shutdown





Copyright © 2005. Sybase Inc. All rights reserved. restore_ver