mps-restart

Stop and start a server instance

Syntax

mps-restart [-C [path/]server_name] [-f]

Description

mps-restart [-C [path/]server_name] [-f] stops a server instance, then restarts the same server instance. Issuing mps-restart is equivalent to issuing the mps-stop and mps-start commands in succession.

Input Arguments

-C path/

Specify a path to the server instance. If this option is omitted, the current working folder and its parents are searched to find the server instance. If you are restarting a server instance in the current working folder, you do not need to specify a full path. Only specify the server name.

server_name

Name of the server to be restarted.

-f

Force success even if the server instance is stopped. Restarting a stopped instance returns an error.

Examples

Restart a server instance named server_1, located in folder tmp. Force successful completion of mps-restart.

mps-restart -f -C /tmp/server_1

Tips

  • After issuing mps-restart, issue the mps-status command to verify the server instance has started.

  • If you are restarting a server instance in the current working folder, you do not need to specify a full path. Only specify the server name.

Introduced in R2012b