mps-stop
Stop server instance from command line on Windows, Linux, and macOS systems
Syntax
mps-stop [-C [path/]server_name]
[-f] [-p | --purge] [-k | --kill] [-v] [--timeout hh:mm:ss]
Description
mps-stop [-C [
closes the HTTP server socket and all open client connections immediately. When you
issue path/]server_name]
[-f] [-p | --purge] [-k | --kill] [-v] [--timeout hh:mm:ss]mps-stop, all function requests that the server was executing
are allowed to complete before the server shuts down.
If you want to delete a server instance directory, you can delete it after the
instance has stopped. You can issue the mps-status command to verify
that the server instance has stopped.
Input Arguments
| Specify a path to the server instance. If you want to stop a server instance in the current working folder, you do not need to specify a full path; only specify the server name. If you omit this option, the system searches the current working folder and its parents to find the server instance. |
| Name of the server to stop. |
| Force success even if the server instance is currently stopped. Stopping a stopped instance is considered an error. |
| Remove working files in the instance directory. These files are usually removed during a graceful shutdown. |
| Immediately and forcibly terminate any running processes for this instance. Use this option if a graceful shutdown has failed. If you specify both To forcibly terminate server instance processes within the duration
specified by the You cannot forcibly terminate a server instance that is running as a Windows® service. |
| Display system messages. |
| Set a limit on how long For example, if you specify If you specify both |
Examples
Stop a server instance server_1 located in the
tmp folder.
Force successful completion of
mps-stopusing-foption. Use--timeoutoption to return with a message, ifmps-stoptakes longer than three minutes to complete. Specify the verbose-voption to produce an output status message.Type the following at the system command line:
mps-stop -f -v -C /tmp/server_1 --timeout 00:03:00waiting for stop... (timeout = 00:03:00)
Immediately terminate all running server instance processes by force using the
-koption.Type the following at the system command line:
mps-stop -k /tmp/server_1To wait as long as necessary to stop server instance processes, do not specify the
--timeoutoption or set theserver-termination-grace-periodproperty in themain_configserver configuration file.Type the following at the system command line:
mps-stop /tmp/server_1
Version History
Introduced in R2012b
See Also
mps-start | mps-service | mps-restart | mps-new | mps-status