systemd prepending /bin to Environment PATH

只愿长相守 提交于 2019-12-04 19:27:36

I created a test service that just printed out the path after setting Environment= with a new path, and found it worked as expected on Ubuntu 16.04 with systemd 229.

I conclude that something in your script is pre-pending /bin to your environment.

Nothing in the systemd.exec man page suggests that systemd is designed to behave the way you observe.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!