According to Ubuntu documentation, when starting sudo service service_name start
, the environment with /etc/environment
does not refer. The service launches a System V init script as predictable as possible, removing most of the environment variables and with the current working directory set to /. I want the environment to be exported without a user context. How can I do that?
Zayky source share