mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Add tasks.systemd_daemon_reload()
systemd daemon must be reloaded after a config file is added, changed, or removed. Provide a common API endpoint in ipaplatform.tasks. Related: https://pagure.io/freeipa/issue/7860 Signed-off-by: Christian Heimes <cheimes@redhat.com> Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com>
This commit is contained in:
@@ -451,7 +451,7 @@ class Restore(admintool.AdminTool):
|
||||
oddjobd.start()
|
||||
http.remove_httpd_ccaches()
|
||||
# have the daemons pick up their restored configs
|
||||
run([paths.SYSTEMCTL, "--system", "daemon-reload"])
|
||||
tasks.systemd_daemon_reload()
|
||||
finally:
|
||||
try:
|
||||
os.chdir(cwd)
|
||||
|
||||
Reference in New Issue
Block a user