-
-
Notifications
You must be signed in to change notification settings - Fork 146
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
Support reload of instances of systemd --user #443
Merged
Merged
Conversation
This file contains 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
bastelfreak
reviewed
Mar 29, 2024
@traylenator I think the bump to Puppet >= 7.9 is missing? (And I'm still torn if that's a breaking change or not). |
traylenator
force-pushed
the
machinectl
branch
3 times, most recently
from
March 29, 2024 17:42
34b8f7b
to
64250bb
Compare
is a better command since the return code makes it out. |
This change increased the minimum required Puppet version to 6.24.0 or 7.9.0 [PUP-5704](https://puppet.atlassian.net/browse/PUP-5704) to support arrays to the command attribute of the exec type. Support the calling the `systemd --user daemon-reload` for a particular user. Example run: ```puppet notify{'junk': notify => Systemd::Daemon_reload['user_foobar'], } systemd::daemon_reload{'user_steve': user => 'steve', } ``` This results on a Fedora box: ``` Notice: /Stage[main]/Main/Notify[junk]/message: defined 'message' as 'junk' Notice: /Stage[main]/Main/Systemd::Daemon_reload[user_steve]/Package[systemd-container]: Triggered 'refresh' from 1 event Notice: /Stage[main]/Main/Systemd::Daemon_reload[user_steve]/Exec[systemd-user_steve-systemctl-user-steve-daemon-reload]: Triggered 'refresh' from 1 event ``` and a journal (debug on) for [email protected] of ``` Mar 29 10:32:11 fedora systemd[2062]: Created slice background.slice - User Background Tasks Slice. Mar 29 10:32:11 fedora systemd[2062]: Starting systemd-tmpfiles-clean.service - Cleanup of User's Temporary Files and Directories... Mar 29 10:32:11 fedora systemd[2062]: Reloading requested from client PID 4379 ('systemctl')... Mar 29 10:32:11 fedora systemd[2062]: Reloading... Mar 29 10:32:11 fedora systemd[2062]: Reloading finished in 179 ms. Mar 29 10:32:11 fedora systemd[2062]: Finished systemd-tmpfiles-clean.service - Cleanup of User's Temporary Files and Directories. ... Only recent versions of `systemd-run` support the --machine option or actually manage to connect to DBUS.
TheMeier
approved these changes
Apr 3, 2024
3 tasks
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.
Pull Request (PR) description
This change increased the minimum required Puppet version to 6.24.0 or 7.9.0 PUP-5704 to support arrays to the command attribute of the exec type.
Support the calling the
systemd --user daemon-reload
for a particular user.Example run:
This results on a Fedora box:
and a journal (debug on) for
[email protected]
ofOnly recent versions of
systemd-run
support the--machine
option or actually manage to connect to DBUS.