use of hudson.lifecycle.RestartNotSupportedException 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