How to Set Environment Variables When Using a systemd Service Wrapper for CodeScene?
If you’re running CodeScene using a systemd service wrapper, any environment variables you export in your current shell (for example, using export PM_DATA_TIMEOUT_MS=60000) will not be visible to the CodeScene service. This is because systemd runs services in their own environment, isolated from the user shell.
To make CodeScene recognize the variable, you need to define it directly in the systemd service definition file. The steps on how to do so are available on the following link: Setting Environment Variables for systemd services.
Was this helpful?
More in On-Premise
How to Deploy CodeScene On-prem?How to Enable OKTA Single Sign-on (SSO) for On-Premise?How Can I Ensure Smooth Performance of the CodeScene Server?What Are CodeScene’s Deployment and System Requirements?Still need help? Ask the team