log.debug("restart of "+entity()+" has no hostname - doing machine-level restart");
super.restart();
return;
}
log.debug("restart of "+entity()+" appears to have driver and hostname - doing driver-level restart");
<BUG>((SoftwareProcessImpl)entity()).getDriver().restart();
DynamicTasks.queue("post-restart", new Runnable() { public void run() {</BUG>
postStartCustom();
if (entity().getAttribute(Attributes.SERVICE_STATE) == Lifecycle.STARTING)
entity().setAttribute(Attributes.SERVICE_STATE, Lifecycle.RUNNING);

log.debug("restart of "+entity()+" has no hostname - doing machine-level restart");
super.restart();
return;
}
log.debug("restart of "+entity()+" appears to have driver and hostname - doing driver-level restart");
entity().getDriver().restart();
DynamicTasks.queue("post-restart", new Runnable() { public void run() {
postStartCustom();
if (entity().getAttribute(Attributes.SERVICE_STATE) == Lifecycle.STARTING)
entity().setAttribute(Attributes.SERVICE_STATE, Lifecycle.RUNNING);
