Our ‘stop all’ script processes all sites that are ‘active’ with Unix shell commands and then requests a stop. We don’t bother to check if the site is running as the hci ‘stop’ does this for us and we would only be saving a few seconds.
In our environment, a site is active if a NetConfig file exists – we move the NetConfig file to NetConfig.disabled to make a site inactive.