Merge pull request #35024 from bobrik/daemon-reload-fix

Cache systemd unit update check per unit, closes #34927
This commit is contained in:
Mike Place 2016-07-28 11:56:29 -06:00 committed by GitHub
commit 7121618142

View File

@ -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()