If you execute the service “wm.server.net.listeners:listListeners” and loop over the record list “listeners” then you can check the “listeners/listening” boolean - if this if false for that listener, then it has stopped listening. To restart the listener, I have found that you need to run “wm.server.net.listeners:disableListener” followed by “wm.server.net.listeners:enableListener”.
You may also want to check the “listeners/enabled” boolean, so that you only restart those listeners that are enabled.
All of these services are in the WmRoot package, which is hidden by default in Developer.
#webMethods-General#Integration-Server-and-ESB#webMethods