} catch (Exception e) {
log().log(Level.ALL, e.toString(), e);
}
// #4333 - check watchdog-manager.log can be written
WriteStream testOut = logPath.openAppend();
testOut.close();
if (! logPath.canWrite()) {
throw new ConfigException("Cannot open " + logPath.getNativePath()
+ " required for Resin start. Please check permissions");