Search the VMware Knowledge Base (KB)
View by Article ID

Stopping, starting, or restarting services in vCenter Server Appliance 6.5 (2147152)

  • 4 Ratings
Language Editions

Purpose

This article provides information on how to manage vCenter server appliance using the service-control command. This can be accessed through the Appliance Shell or BASH Shell.

Resolution

Service-control

To view the available commands, run the service-control --help command:

# service-control --help
 usage: service-control [-h] [--start] [--stop] [--status] [--list] [--list-services] [--vmon-profile VMON_PROFILE] [--all] [--ignore] ...


Perform operation on VMware services. By default, the services selected are based on current startup profile.
This can be overridden by using --all and --vmon-profile options.

Positional arguments:
services    services on which to operate optional arguments:

Arguments Description
-h,--helpshow  Help message and exit
--startPerform  Start operation on VMware services
--stop Perform stop operation VMware services
--status Get running status of VMware services
--list
List all controllable VMware services
Note: This option will soon be deprecated. Only use --list-services.
--list-services Lists all controllable VMware services
--vmon-profile  VMON_PROFILE
--all  Services associated with given profile name. Start/Stop all VMware services that is core and the default mgmt services
--ignore Ignore errors. Continue with given operation even if errors occur.


To list the services installed on the vCenter Server Appliance 6.5, run the service-control --list-services command:

# service-control --list-services
vmware-vpostgres (VMware Postgres)
vmware-imagebuilder (VMware Image Builder Manager)
vmware-cm (VMware Component Manager)
vmware-vpxd (VMware vCenter Server)
vmware-sps (VMware vSphere Profile-Driven Storage Service)
applmgmt (VMware Appliance Management Service)
vmware-statsmonitor (VMware Appliance Monitoring Service)
vmware-rhttpproxy (VMware HTTP Reverse Proxy)
vmware-vapi-endpoint (VMware vAPI Endpoint)
vmware-stsd (VMware Security Token Service)
lwsmd (Likewise Service Manager)
vmafdd (VMware Authentication Framework)
vmware-psc-client (VMware Platform Services Controller Client)
vmware-vsm (VMware vService Manager)
vmonapi (VMware Service Lifecycle Manager API)
vmware-perfcharts (VMware Performance Charts)
vmware-updatemgr (VMware Update Manager)
vmware-vmon (VMware Service Lifecycle Manager)
vmware-vsan-health (VMware VSAN Health Service)
vsphere-client (VMware vSphere Web Client)
vmware-sts-idmd (VMware Identity Management Service)
vmcad (VMware Certificate Service)
vmware-eam (VMware ESX Agent Manager)
vmware-cis-license (VMware License Service)
vmcam (VMware vSphere Authentication Proxy)
pschealth (VMware Platform Services Controller Health Monitor)
vmdird (VMware Directory Service)
vmware-mbcs (VMware Message Bus Configuration Service)
vmware-vcha (VMware vCenter High Availability)
vsphere-ui (VMware vSphere Client)
vmware-content-library (VMware Content Library Service)
vmdnsd (VMware Domain Name Service)
vmware-sca (VMware Service Control Agent)
vmware-netdumper (VMware vSphere ESXi Dump Collector)
vmware-vpxd-svcs (VMware vCenter-Services)
vmware-rbd-watchdog (VMware vSphere Auto Deploy Waiter)

Note: The list will vary depending if the Platform Services Controller Services are Embedded or External.

To list the status of all the services, run the service-control --status command. In the following example, you can see the running services and the stopped services.

# service-control --status

Running:

applmgmt lwsmd pschealth vmafdd vmcad vmdird vmdnsd vmonapi vmware-cis-license vmware-cm vmware-content-library vmware-eam vmware-perfcharts vmware-psc-client vmware-rhttpproxy vmware-sca vmware-sps vmware-statsmonitor vmware-sts-idmd vmware-stsd vmware-updatemgr vmware-vapi-endpoint vmware-vmon vmware-vpostgres vmware-vpxd vmware-vpxd-svcs vmware-vsan-health vmware-vsm vsphere-client vsphere-ui

Stopped:

vmcam vmware-imagebuilder vmware-mbcs vmware-netdumper vmware-rbd-watchdog vmware-vcha

To query the same but for an individual service, run the service-control --status service_name command:

# service-control --status vmware-cm

Running: vmware-cm


To stop an individual VMware service, run the service-control --stop service_name command:

# service-control --stop vmware-cm

To start an individual VMware service, run the  service-control --start service_name command:

# service-control --start vmware-cm

To stop all the VMware services, run the service-control --stop --all command:

# service-control --stop --all

To start all the VMware services, run the service-control --start --all command:

# service-control --start --all

Note: There is no service-control --restart command.

Photon OS

For Photon OS service manipulation, use the following commands instead of their SLES counterparts. These commands must be used from the BASH Shell.

Photon OS Commands SLES Commands
systemctl start <service> service <service> start
systemctl stop <service> service <service> stop
systemctl restart <service> service <service> restart
systemctl reload <service> service <service> reload
systemctl condrestart <service> service <service> condrestart
systemctl status <service> service <service> status
systemctl enable <service> chkconfig <service> on
systemctl disable <service> chkconfig <service> off
systemctl daemon-reload chkconfig <service> --add
systemctl list-units --type service --all chkconfig --list <service name>
systemctl is-enabled <service> chkconfig --list vmware-tools-services

See Also

Language Editions

ja,2148143;zh_cn,2148223

Request a Product Feature

To request a new product feature or to provide feedback on a VMware product, please visit the Request a Product Feature page.

Feedback

  • 4 Ratings

Did this article help you?
This article resolved my issue.
This article did not resolve my issue.
This article helped but additional information was required to resolve my issue.

What can we do to improve this information? (4000 or fewer characters)




Please enter the Captcha code before clicking Submit.
  • 4 Ratings
Actions
KB: