Launch an ubuntu service environment

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?

+1
source share

Source: https://habr.com/ru/post/913194/


All Articles