mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 09:23:56 +00:00
Merge pull request #35024 from bobrik/daemon-reload-fix
Cache systemd unit update check per unit, closes #34927
This commit is contained in:
commit
7121618142
@ -70,7 +70,7 @@ def _check_for_unit_changes(name):
|
||||
Check for modified/updated unit files, and run a daemon-reload if any are
|
||||
found.
|
||||
'''
|
||||
contextkey = 'systemd._check_for_unit_changes'
|
||||
contextkey = 'systemd._check_for_unit_changes.{0}'.format(name)
|
||||
if contextkey not in __context__:
|
||||
if _untracked_custom_unit_found(name) or _unit_file_changed(name):
|
||||
systemctl_reload()
|
||||
|
Loading…
Reference in New Issue
Block a user