use of org.hudsonci.service.ServiceRuntimeException in project hudson-2.x by hudson.
the class SystemServiceImpl method doRestart.
public void doRestart(boolean safely) {
//securityService.checkPermission(Hudson.ADMINISTER);
try {
if (safely) {
log.debug("Restarting (safely)");
getHudson().safeRestart();
} else {
log.debug("Restarting");
getHudson().restart();
}
} catch (RestartNotSupportedException ex) {
throw new ServiceRuntimeException("Restart not supported", ex);
}
}
Aggregations