0

Is there any way I could run a systemd service that refers some user's environment variables? The same variable that are already included in .bashrc for example.

Have found these three ways of adding environment variables but none of them mentions about executing services in particular user context.

https://www.thegeekdiary.com/how-to-set-environment-variables-for-a-systemd-service-in-centos-rhel-7/

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.