def reload_and_restart(): if ch_host.init_is_systemd(): subprocess.check_call(['systemctl', 'daemon-reload']) # no need to restart aodh-api in ocata and onwards