Skip to content

Instantly share code, notes, and snippets.

@ramonsmits
Last active February 21, 2025 08:51
Show Gist options
  • Save ramonsmits/e34f55cc2bcf11b417372e5fd4c11374 to your computer and use it in GitHub Desktop.
Save ramonsmits/e34f55cc2bcf11b417372e5fd4c11374 to your computer and use it in GitHub Desktop.
ServiceControl external RavenDB setup

Steps to run ServiceControl RavenDB external

Install RavenDB Server

  1. Download latest 6.x RavenDB Server: https://ravendb.net/download
  2. Install as Windows service
  3. Open RavenDB Studio http://localhost:8080/studio/index.html
  4. Add the RavenLicense.json

Configure instance

  1. Open RavenDB Studio http://localhost:8080/studio/index.html
  2. Create a database (i.e. audit1) and point it to a separate disk
  3. Back up the servicecontrol.audit.exe.config
  4. Modify servicecontrol.audit.exe.config:
  • Remove <add key="ServiceControl.Audit/DBPath" value="***" />
  • Add <add key="ServiceControl.Audit/RavenDB/ConnectionString" value="http://localhost:8080" />
  • Add <add key="ServiceControl.Audit/RavenDB/DatabaseName" value="audit1" /> (use same name as step 5)

Set service dependencies

  1. Launch cmd.exe as an admin
  2. Run sc.exe config Particular.ServiceControl.Audit depend= http/ravendb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment