Attempts to change the state of an instance of a service.
Note: The euserv-modify-service command replaces the deprecated
euca-modify-service command.
Syntax
euserv-modify-service -s STATE [-U URL] [--region USER@REGION]
[-I KEY_ID] [-S KEY] [--security-token TOKEN]
[--debug] [--debugger] [--version] [-h] SVCINSTANCE
Positional Arguments
Argument |
Description |
SVCINSTANCE |
The name of the service instance to modify. |
Options
Option |
Description |
Required |
-s, --state state |
The state to change to. |
Yes |
Common Options
Option |
Description |
--show-empty-fields |
Show empty fields as "(nil)". |
--region user@region |
Region and/or user name to search when looking up config file data. Only valid for EC2
endpoints. |
-U,--url url |
URL of the cloud service to connect to. For administrative commands, this should be <ip_address>:8773/services/Empyrean. |
-I,--access-key-id key_id |
User's access key ID. |
-S,--secret-key secret_key |
User's secret key. |
--security-token token |
User's security token. |
--debug |
Prints what the command sends to the server
and what it receives from the server. Use when
you're trying to debug Euca2ools. |
--debugger |
Enable interactive debugger on error. |
-h,--help |
Display the manual page for the
command. |
--version |
Display the version of this tool. |
Output
No output is given. You can run the euserv-describe-services command
to verify that the modification completed successfully, as shown in the example following.
Example
To modify the state of a storage controller service named "two-sc-1" to stopped:
euserv-modify-service -s stopped two-sc-1
euserv-describe-services two-sc-1
SERVICE storage two two-sc-1 stopped