Stop(); } catch(ContainerStopException $e) { // we can make this silently fail, as the only important thing is that it starts again } $sContainer->Start(); $sContainer->sCurrentStatus = CVM_STATUS_STARTED; $sError .= NewTemplater::Render("{$sTheme}/shared/error/success", $locale->strings, array( 'title' => $locale->strings['error-stop-restart-success'], 'message' => $locale->strings['error-stop-restart-success'] )); } catch (ContainerSuspendedException $e) { $sError .= NewTemplater::Render("{$sTheme}/shared/error/error", $locale->strings, array( 'title' => $locale->strings['error-restart-suspended-title'], 'message' => $locale->strings['error-restart-suspended-text'] )); } catch (ContainerTerminatedException $e) { $sError .= NewTemplater::Render("{$sTheme}/shared/error/error", $locale->strings, array( 'title' => $locale->strings['error-restart-terminated-title'], 'message' => $locale->strings['error-restart-terminated-text'] )); } catch(ContainerStartException $e) { $sError .= NewTemplater::Render("{$sTheme}/shared/error/error", $locale->strings, array( 'title' => $locale->strings['error-restart-start-title'], 'message' => $locale->strings['error-restart-start-text'] )); }