man: explicitly mention that environment.d/ cannot be used to set the…#29801
Merged
bluca merged 1 commit intosystemd:mainfrom Nov 1, 2023
Merged
Conversation
… service manager's own env block Fixes: systemd#29414
bluca
approved these changes
Nov 1, 2023
rpigott
reviewed
Nov 3, 2023
| exclusively the environment blocks passed to the services it manages. Environment variables set that way | ||
| thus cannot be used to influence behaviour of the service manager. In order to make changes to the | ||
| service manager's environment block the environment must be modified before the user's service manager is | ||
| invoked, for example from the system service manager or via a PAM module.</para> |
Contributor
There was a problem hiding this comment.
@poettering Isn't this false? We have systemd-user.conf(5)'s ManagerEnvironment= setting. Should that be mentioned here?
EDIT: I use this feature with #26675 to set ManagerEnvironment=XDG_CONFIG_DIRS=%h/.hostconfig/%H:/etc/xdg and it does work as intended to extend the user service search path.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
… service manager's own env block
Fixes: #29414