@Throws(LocalRepositoryException::class) fun restart(serviceName: String) { val prefix = "restart(): serviceName=$serviceName " _log.debug(prefix) val cmd = arrayOf(_SYSTOOL_CMD, _SYSTOOL_RESTART, serviceName) val result: Exec.Result = org.gradle.api.tasks.Exec.sudo(_SYSTOOL_TIMEOUT, cmd) checkFailure(result, prefix) }
Restart a service