protected function doStopServices($runlevel) { // iterate over all services and stop them foreach (array_flip($this->runlevels[$runlevel]) as $name) { $this->unbindService($runlevel, $name); } }