-
Notifications
You must be signed in to change notification settings - Fork 23.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
systemd_service: Support for the "machine" parameter #82958
Comments
Files identified in the description: If these files are incorrect, please update the |
systemctl's `--machine` option execute the operation in the context of a local user session or a local container. This provides a failsafe way to run systemd on behalf of another user than setting the `XDG_RUNTIME_DIR` variable. Signed-off-by: Jimmy Thrasibule <dev@jimmy.lt>
Out of curiosity, wouldn't it be advised to use |
|
systemctl's `--machine` option execute the operation in the context of a local user session or a local container. This provides a failsafe way to run systemd on behalf of another user than setting the `XDG_RUNTIME_DIR` variable. Signed-off-by: Jimmy Thrasibule <dev@jimmy.lt>
Summary
When trying to run systemd as another user, the following is advised:
However, this may not always work and can fail in various ways, typically:
Since systemd 248, the
--machine
option is available to to open a connection to the session bus of a specific user.Issue Type
Feature Idea
Component Name
systemd_service
Additional Information
Code of Conduct
The text was updated successfully, but these errors were encountered: