WilliamLam.com

  • About
    • About
    • Privacy
  • VMware Cloud Foundation
  • VKS
  • Homelab
    • Resources
    • Nested Virtualization
  • VMware Nostalgia
  • Apple
You are here: Home / Automation / Quick Tip - Start & Stop order for vCenter Server Services

Quick Tip - Start & Stop order for vCenter Server Services

12.04.2014 by William Lam // 9 Comments

A couple weeks back I had worked on something that required me to shutdown all the vCenter Server Services on a VCSA (vCenter Server Appliance). There is no high level service that can be stopped which would properly shutdown all the different services in the appropriate order. Luckily, one can easily derive the start and stop order by just taking a look at the runlevel scripts (S* for start and K* for Kill scripts). I have extracted the order in which the vCenter Server Services must be stopped and started which is shown below:

Stop Order:

  1. vmcad
  2. vmdird
  3. vmkdcd
  4. vmware-inventoryservice
  5. vmware-logbrowser
  6. vmware-netdumper
  7. vmware-vpxd
  8. vsphere-client
  9. vmware-stsd
  10. vmware-sts-idmd

Start Order:

  1. vmcad
  2. vmdird
  3. vmkdcd
  4. vmware-netdumper
  5. vmware-sts-idmd
  6. vmware-stsd
  7. vmware-inventoryservice
  8. vmware-logbrowser
  9. vmware-vpxd
  10. vsphere-client

Note: Although I mention the VCSA, the ordering also applies to a vCenter Server for Windows which has the exact same services.

Here is a simple shell script snippet that can be used to stop all vCenter Server Services in the appropriate order:

VMWARE_SERVICE_STOP=(
vmcad
vmdird
vmkdcd
vmware-inventoryservice
vmware-logbrowser
vmware-netdumper
vmware-vpxd
vsphere-client
vmware-stsd
vmware-sts-idmd
)

for i in ${VMWARE_SERVICE_STOP[@]};
do
  /etc/init.d/$i stop
done

}

Here is a simple shell script snippet that can be used to start all vCenter Server Services in the appropriate order:

VMWARE_SERVICE_START=(
vmcad
vmdird
vmkdcd
vmware-netdumper
vmware-sts-idmd
vmware-stsd
vmware-inventoryservice
vmware-logbrowser
vmware-vpxd
vsphere-client
)

for i in ${VMWARE_SERVICE_START[@]};
do
  /etc/init.d/$i start
done

More from my site

  • Quick Tip - Changing default port for HTTP Reverse Proxy on both vCenter Server & ESXi
  • Which Platform Services Controller (PSC) is my vCenter Server pointing to?
  • Tech Preview of Windows VC to VCSA Migration at VMworld
  • VMworld Session VCSA INF5975 & INF4528 available to public
  • What's New in vSphere 6.0 Update 1 for VCSA?

Categories // Automation, VCSA, vSphere Tags // vCenter Server, vcenter server appliance, VCSA, vcva

Comments

  1. *protectedJohncee says

    12/05/2014 at 4:07 pm

    thats cool, did you write that script for the appliance specifically? can it be used on other appliances?

    Reply
    • William Lam says

      12/05/2014 at 6:03 pm

      The snippet is specifically for VCSA, however you could use the base to start/stop other services for other VMware Appliances or even just Linux systems in general as it's just the service name

      Reply
  2. *protectedJohnnyMac says

    12/05/2014 at 4:19 pm

    Here is the same thing in a one-liner (no need to create a script):

    Stopping services in the correct order:

    $ ls /etc/init.d/ | grep 'vmcad\|vmdird\|vmkdcd\|vmware-inventoryservice\|vmware-logbrowser\|vmware-netdumper\|vmware-vpxd\|vsphere-client\|vmware-stsd\|vmware-sts-idmd' | while read line ; do service "$line" stop ; done

    Starting services in the correct order:

    $ ls /etc/init.d/ | grep 'vmcad\|vmdird\|vmkdcd\|vmware-inventoryservice\|vmware-logbrowser\|vmware-netdumper\|vmware-vpxd\|vsphere-client\|vmware-stsd\|vmware-sts-idmd' | while read line ; do service "$line" start ; done

    Reply
    • William Lam says

      12/05/2014 at 6:03 pm

      Thanks for the contribution, definitely several ways 🙂 I figured this would be easy enough to read for most folks.

      Reply
  3. *protectedJohnnyMac says

    12/05/2014 at 4:42 pm

    Correction - starting services in the correct order is as follows:

    ls /etc/init.d/ | grep 'vmcad\|vmdird\|vmkdcd\|vmware-netdumper\|vmware-sts-idmd\|vmware-stsd\|vmware-inventoryservice\vmware-logbrowser\|vmware-vpxd\|vsphere-client' while read line ; do service "$line" start ; done

    Reply
  4. *protectedMichel Escher says

    03/31/2015 at 7:13 pm

    It would be nice to have an updated version of this post for VCSA 6.0. Thanks.

    Reply
    • William Lam says

      04/01/2015 at 1:51 am

      This is officially documented in this VMware KB - kb.vmware.com/kb/2054085

      Reply
      • *protectedJau-Ling Chou says

        03/23/2016 at 6:55 am

        That KB article does not mention anything about order unfortunately. Its also specifically for vCenter/VCSA 5.x

        Reply
  5. *protectedSai Krishna says

    06/13/2019 at 7:08 pm

    how to find start order of vcsa 6.5 services and its dependencies.. Please tell how to verify the same by analysing scripts..

    trying to figure out start of on services on external psc and embedded psc vcsa machine's

    Reply

Thanks for the comment!Cancel reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Search

Thank Author

Author

William is Distinguished Platform Engineering Architect in the VMware Cloud Foundation (VCF) Division at Broadcom. His primary focus is helping customers and partners build, run and operate a modern Private Cloud using the VMware Cloud Foundation (VCF) platform.

Connect

  • Bluesky
  • Email
  • GitHub
  • LinkedIn
  • Mastodon
  • Reddit
  • RSS
  • Twitter
  • Vimeo

Recent

  • VMware Flings is now available in Free Downloads of Broadcom Support Portal (BSP) 05/19/2025
  • VMUG Connect 2025 - Minimal VMware Cloud Foundation (VCF) 5.x in a Box  05/15/2025
  • Programmatically accessing the Broadcom Compatibility Guide (BCG) 05/06/2025
  • Quick Tip - Validating Broadcom Download Token  05/01/2025
  • Supported chipsets for the USB Network Native Driver for ESXi Fling 04/23/2025

Advertisment

Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use.
To find out more, including how to control cookies, see here: Cookie Policy

Copyright WilliamLam.com © 2025