I am trying to find the link, it seemed to work yesterday. Anyways, the variable does work. You could just set it and it should automatically pick up the app.config script. You can see it working on my windows vm below.
Original Message:
Sent: Tue November 07, 2023 05:36 AM
From: benlinux
Subject: Resilient Circuits service on Windows keeps stopping
Hello Calvin,
Thanks for the help. Can you assist with this???
I thought this environmental variable APP_CONFIG_FILE applies to Resilient circuits running on Linux machine, I am working with Windows machine.
Also, the link you shared has been removed.
Please assist .
Regards
------------------------------
benlinux
Original Message:
Sent: Mon November 06, 2023 09:15 AM
From: Calvin Wynne
Subject: Resilient Circuits service on Windows keeps stopping
Hi Benlinux,
You could refer to this documentation. Like any resilient-circuits or resilient-sdk command, you can always set the Environment variable APP_CONFIG_FILE to the path to the config file. res-keyring will work just fine with that variable set and will interpolate any secrets from the file that the variable points to.
Regards,
------------------------------
Calvin Wynne
Original Message:
Sent: Mon November 06, 2023 01:17 AM
From: benlinux
Subject: Resilient Circuits service on Windows keeps stopping
Hello Calvin,
Please can you assist with this other question?
How do you use res-keyring with this custom app.config file??
Thanks
------------------------------
benlinux
Original Message:
Sent: Sat November 04, 2023 09:08 AM
From: benlinux
Subject: Resilient Circuits service on Windows keeps stopping
Hello Calvin,
It is not stopping again,
The commands worked. I think this should be documented in IBM documentation.
One more question, how do you use res-keyring with this custom app.config file??
Thanks,
------------------------------
benlinux
Original Message:
Sent: Fri November 03, 2023 06:50 PM
From: Calvin Wynne
Subject: Resilient Circuits service on Windows keeps stopping
Hey Benlinux,
I suspect the path we are providing is not read properly on windows. You see we have to escape the "\" character on windows for it to be read while being passed as a string. Could you try replacing "\" with "\\" as shown below ?
resilient-circuits.exe service --res-circuits-args "--config-file C:\\Users\\Administrator\\test_app.config"
Regards
------------------------------
Calvin Wynne
Original Message:
Sent: Thu November 02, 2023 04:21 AM
From: benlinux
Subject: Resilient Circuits service on Windows keeps stopping
Hello Experts,
I have successfully installed integration server on a Windows server 2016. I installed the app.config file in a different path. I observed that the Resilient service stops few minutes after been started.
Commands i used to install resilient::
> resilient-circuits.exe config -c C:\Users\Administrator\test_app.config
> resilient-circuits.exe run --config-file C:\Users\Administrator\test_app.config =====> This runs without any error.
> resilient-circuits.exe service install ===> i have also tried > resilient-circuits.exe service --res-circuits-args "--config-file C:\Users\Administrator\test_app.config" install (still no luck)
The below gif explains the issue.
![](https://dw1.s81c.com//IMWUC/MessageImages/e7e9c147df8d4ba6a40ea25ce8a86339.gif)
Please note, if I install the resilient without specifying a custom location or new name for the app.config file, it works perfectly i.e. the resilient circuits service runs without stopping.
Kindly assist I am on a SOAR project, and the customer does not want to save the app.config file in the default C: drive that resilient saves the app.config file (C:\Users\<User_name>\.resilient\).
Best Regards,
------------------------------
benlinux
------------------------------