resilient-python-api icon indicating copy to clipboard operation
resilient-python-api copied to clipboard

Storing Resilient Args in Registry for Windows Service Generation

Open lmahoney1 opened this issue 3 years ago • 0 comments

Description

Storing arguments passed into the --res-circuits-args option for command resilient-circuits.exe service ... install in the Windows registry.

This post gave me the insight on how to do this.

Motivation and Context

Allows arguments to be passed to resilient circuits when it's being ran as a windows service - e.g. you can run the service with a custom app.config location.

Was looking into this because we have a couple of integrations running on a Windows server that we want running in virtual environments / their own integration server.

How Has This Been Tested?

I have generated windows services via command resilient-circuits.exe service --res-circuits-args "--config-file C:\\Users\\USER\\Path\\To\\app.config" install and have verified the proper app.config file was loaded by the resilient circuits started through a Windows Service

Checklist:

  • [x] I have added a Signed-off-by
  • [x] Either no new documentation is required by this change, OR I added new documentation
  • [] Either no new tests are required by this change, OR I added new tests
  • [] I have run pep8 and pylint. I have cleaned up all valid errors and warnings in code I have added or modified. These tools may generate false positives. Don't be worried about ignoring some errors or warnings. The goal is clean, consistent, and readable code.

Signed-off-by: Liam Mahoney

lmahoney1 avatar Jun 22 '22 13:06 lmahoney1