-
-
Notifications
You must be signed in to change notification settings - Fork 146
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support reload
systemd --user
for non-zero UIDs
Support calling the `systemd --user` for a particular uid. A `uid` must be used rather than the probably more convenient username since the `$XDG_RUNTIME_DIR` for the user must be known. This change assumes that XDG_RUNTIME_DIR is `/run/user/<uid>` for all uids. Example run: ```puppet notify{'junk': notify => Systemd::Daemon_reload['foobar'], } systemd::daemon_reload{'foobar': uid => 1000, } ``` results in ``` Notice: Compiled catalog for fedora. in environment production in 0.05 seconds Notice: junk Notice: /Stage[main]/Main/Notify[junk]/message: defined 'message' as 'junk' Notice: /Stage[main]/Main/Systemd::Daemon_reload[foobar]/Exec[systemd-foobar-systemctl-user-1000-daemon-reload]: Triggered 'refresh' from 1 event Notice: Applied catalog in 0.17 seconds ``` and a journal (debug on) of ``` Feb 28 11:44:34 fedora systemd[1]: [email protected]: Got notification message from PID 1877 (RELOADING=1, MONOTONIC_USEC=5874581103) Feb 28 11:44:34 fedora systemd[1]: [email protected]: Changed running -> reload-notify Feb 28 11:44:34 fedora systemd[1]: [email protected]: Installed new job [email protected]/nop as 6151 ...
- Loading branch information
1 parent
bcec820
commit 4e3d0a1
Showing
3 changed files
with
98 additions
and
6 deletions.
There are no files selected for viewing
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
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
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