MCPcopy Create free account
hub / github.com/MertJSX/folderhost / forceKillAll

Method forceKillAll

utils/service_utils/service_manager.go:294–304  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

292}
293
294func (sm *ServiceManager) forceKillAll() {
295 sm.Mu.RLock()
296 defer sm.Mu.RUnlock()
297
298 for name, service := range sm.Services {
299 if service.CMD != nil && service.CMD.Process != nil {
300 log.Printf("Forcing to stop: %s (PID: %d)", name, service.PID)
301 KillProcess(service.PID)
302 }
303 }
304}
305
306func (sm *ServiceManager) GetServiceStatus(name string) (ServiceStatus, error) {
307 sm.Mu.RLock()

Callers 1

ShutdownMethod · 0.95

Calls 1

KillProcessFunction · 0.85

Tested by

no test coverage detected