In VMware vCenter Server 7.x and higher, VMware recommends to use the vSphere Web Client or Service Control command-line tool to stop, start, or restart vCenter Server services.
Starting/Stopping/Restarting vCenter Server and/or Platform Services Controller Services:
To start/stop/restart a vCenter Server and/or Platform Services Controller service if it is has stopped using the vSphere Web Client:
- Log in to the vSphere Web Client with a vCenter Single Sign-on administrator account.
- Navigate to Administration > Deployment > System Configuration.
- Click on Services to view the list of all services within the vCenter Server system.
- To view a list of services for a specific node, click Nodes, select the node in question and click the Related Objects tab.
- Right-click on the service you would like to start and select Start/stop/restart.
Note:
- If you restart Inventory Service in the preceding method, the Inventory Service starts but the services depending on the Inventory Service fail to start.
- This issue will not be fixed as Inventory Service will be removed in the future release of vCenter Server.
- To work around this issue, log in to Windows Machine and restart Inventory Service.
- This issue does not occur in vCenter Server Appliance.
Start/Stop/Restart Services on a vCenter Server Appliance Using the CLI:
- Run this command to list the vCenter Server and/or Platform Services Controller services and their statuses:
service-control –-status --all
- Run this command to:
-
- Start a specific service: service-control --start <service_name>
- Start all services: service-control --start --all
To perform a dry run of the command, this displays the actions that command run without executing the actions: service-control --start --all --dry-run
-
- Stop a specific service: service-control --stop <service_name>
- Stop all services: service-control --stop --all
To perform a dry run of the command, this displays the actions that command run, without executing the actions: service-control --stop --all --dry-run
-
- Restart all services at once: service-control --stop --all && service-control --start --all