Wait Time - Depending on where/how you’re initiating the shutdown, note that there may be a wait-time (with a time limit) before the server actually starts shutting down, to allow for in-flight services to complete.
Quiesce - Read about the Quiesce feature, thoroughly (link). For wM application maintenance, a shutdown may not always be needed and this is where the Quiesce mode comes in handy.
Administrator API - Once you understand the aforesaid feature, you can use the Administrator REST API, to automate this (link).
Operation - POST /admin/quiesce/port
KM
#webMethods#B2B-Integration