There are two files that supply the startup configuration for dbWatch, both can be found in the root of the dbWatch installation catalog.

  • monitor.conf Startup configuration for the dbWatch Monitor
  • server.conf Startup configuration for the dbWatch Server

server.conf

The default server.conf file looks like this:

loglevel 1
loadproperties version.properties

export dbwatch.configdir  config
export dbwatch.workdir    server
export dbwatch.logdir     log

// If on windows
if(${win_app_data}) export dbwatch.datadir ${win_app_data}/dbWatch/${version}/server
// Linux and mac
else export dbwatch.datadir server

include custom_server.conf
include ${user.home}/.dbwatch/custom_server.conf

redirect stdOut ${dbwatch.logdir}/output.log
redirect stdErr ${dbwatch.logdir}/error.log

localstore repository dbwatch no.dbwatch
localstore ${dbwatch.datadir}/generated_repository generated
localstore repository_server_bundles bundles no.dbwatch
localstore repository_external external

unify org.scala-lang:scala 2.11.8
unify com.fasterxml.jackson 2.5.2

dependency org.scala-lang:scala-parser-combinators org.scala-lang:scala-library
dependency org.scala-lang.modules org.scala-lang:scala-library
dependency com.fasterxml.jackson.module org.scala-lang:scala-library
dependency com.fasterxml.jackson.module com.thoughtworks.paranamer
dependency io.reactivex:rxscala_2.11 org.scala-lang:scala-library
dependency com.typesafe.akka:akka-actor_2.11 org.scala-lang:scala-library

run no.dbwatch:server:jar:${version}/no.onedge.dbwatch.server.Server.main

monitor.conf

The default monitor.conf file looks like this:

loglevel 1
loadproperties version.properties

export dbwatch.workdir    ${user.home}/.dbwatch/monitor
export dbwatch.logdir     ${dbwatch.workdir}/log

// If on windows
if(${win_app_data}) export dbwatch.datadir ${win_app_data}/dbWatch/${version}/monitor
// Linux and mac
else export dbwatch.datadir ${user.home}/.dbwatch/monitor;

include custom_monitor.conf
include ${user.home}/.dbwatch/custom_monitor.conf

redirect stdOut ${dbwatch.logdir}/output.log
redirect stdErr ${dbwatch.logdir}/error.log

dependency org.scala-lang:scala-parser-combinators org.scala-lang:scala-library
dependency com.typesafe.akka:akka-actor_2.11 org.scala-lang:scala-library

localstore repository dbwatch no.dbwatch
localstore ${dbwatch.datadir}/bundle_repository bundles
localstore repository_monitor_bundles bundles no.dbwatch.bundles
localstore repository_external external

unify org.scala-lang:scala 2.11.8
unify org.reactfx:reactfx 2.0-M5

run no.dbwatch:monitor:jar:${version}/no.onedge.dbwatch.monitor.Monitor.main

Editing

The lines that you are likely to change are:

Lines starting with export

Lines starting with export define where dbWatch will look for (or place) particular files

  • dbwatch.workdir The main working directory for dbWatch
  • dbwatch.logdir Where logfiles will be placed
  • dbwatch.configdir Where dbWatch will look for configuration files.
  • dbwatch.datadir Where dbWatch will place libraries it creates.

Lines starting with redirect

Lines starting with redirect override where the standard output (stdOut) and error stream (stdErr) from dbWatch go. If you remove these lines, the output will appear in the console that you used to start dbWatch (if any)

Lines starting with localstore

Lines starting with localstore tells dbWatch where to look for the libraries it uses.

← Protecting the communication / Integrating with active directory →

Feedback

Was this helpful?

Yes No
You indicated this topic was not helpful to you ...
Could you please leave a comment telling us why? Thank you!
Thanks for your feedback.

Post your comment on this topic.

Post Comment