Stop(); } catch(VpsStopException $e) { // we can make this silently fail, as the only important thing is that it starts again } $sVps->Start(); $sVps->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 (VpsSuspendedException $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 (VpsTerminatedException $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(VpsStartException $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'] )); }