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