To list the vCenter Server Appliance services using the command-line:

  1. Log in as root through an SSH or console session on the vCenter Server Appliance.
  2. Run this command to enable the shell (Note: This command is applicable only for vCenter Server Appliance 6.0):

    shell.set --enabled true
     
  3. Run this command to launch the shell (Note: This command is applicable if you are in Appliance shell) :

    shell
     
  4. Run this to change directories to /bin:

    cd /bin
     
  5. Run this command to list the vCenter Server Appliance services:

    service-control --list
     
  6. To view the current status of the vCenter Server Appliance services, type the command:

    service-control --status
     

Starting the vCenter Server Appliance services

To start the vCenter Server Appliance service if it is was stopped using the vSphere Web Client:

  1. Log in to the vSphere Web Client with a vCenter Single Sign-on administrator account.
  2. Navigate to AdministrationDeploymentSystem Configuration.
  3. Click Nodes, select the vCenter Server Appliance node and click the Related Objects tab.
  4. Right-click on the service you would like to start and select Start.

To start the vCenter Server Appliance service if it is was stopped using the command-line:

  1. Log in as root through an SSH or console session on the vCenter Server Appliance.
  2. Run this command to enable the shell (Note: This command is applicable only for vCenter Server Appliance 6.0):

    shell.set --enabled true
  3. Run this command to launch the shell (Note: This command is applicable if you are in Appliance shell):

    shell
  4. Run this command to change directories to /bin:

    cd /bin
     
  5. Run this command to list the vCenter Server Appliance services:

    service-control --list
     
  6. Run this command to start a specific service:

    service-control --start servicename
     
  7. You may also start all services by typing the command:

    service-control --start --all
     
  8. To perform a dry run of the command, add the option --dry-run to the command. This will display what actions the command will run without executing the actions. For example, type the command:
Note: This step is valid for vCSA 6.0 only.

service-control --start --all --dry-run

Stopping the vCenter Server Appliance services

To stop a vCenter Server Appliance service if it was started using the vSphere Web Client:

  1. Log in to the vSphere Web Client with a vCenter Single Sign-on administrator account.
  2. Navigate to AdministrationDeploymentSystem Configuration.
  3. Click Nodes, select the vCenter Server Appliance node and click the Related Objects tab.
  4. Right-click on the service you would like to stop and select Stop.

To stop the vCenter Server Appliance service if it is was started using the command-line:

  1. Log in as root through an SSH or console session on the vCenter Server Appliance.
  2. Run this command to enable the shell (Note: This command is applicable only for vCenter Server Appliance 6.0):

    shell.set --enabled true
  3. Run this command to launch the shell (Note: This command is applicable if you are in Appliance shell):

    shell
  4. Run this command to change directories to /bin:

    cd /bin
     
  5. Run this command to list the vCenter Server Appliance services:

    service-control --list
     
  6. Run this command to stop a specific service:

    service-control --stop servicename
     
  7. You may also stop all services by typing the command:

    service-control --stop --all
     
  8. To perform a dry run of the command, add the option --dry-run to the command. This will display what actions the command will run without executing the actions. For example, type the command:
Note: This step is valid for vCSA 6.0 only.

service-control --stop --all --dry-run

Restarting vCenter Server and/or Platform Services Controller services

To restart a vCenter Server Appliance service using the vSphere Web Client:

  1. Log in to the vSphere Web Client with a vCenter Single Sign-on administrator account.
  2. Navigate to AdministrationDeploymentSystem Configuration.
  3. Click Nodes, select the vCenter Server Appliance node and click the Related Objects tab.
  4. Right-click on the service you want to restart and select Restart.

To restart a vCenter Server and/or Platform Services Controller service using the command-line:

  1. Log in as root through an SSH or console session on the vCenter Server Appliance.
  2. Run this command to enable the shell (Note: This command is applicable only for vCenter Server Appliance 6.0):

    shell.set --enabled true
  3. Run this command to launch the shell (Note: This command is applicable if you are in Appliance shell):

    shell
  4. Run this command to change directories to /bin:

    cd /bin
     
  5. Run this command to list the vCenter Server Appliance services:

    service-control --list
     
  6. Run this command to stop a specific service:

    service-control --stop servicename
     
  7. You may also stop all services by typing the command:

    service-control --stop --all
     
  8. Run this command to start a specific service:

    service-control --start servicename
     
  9. You may also start all services by typing the command:

    service-control --start --all