def reload_and_restart(): if ch_host.init_is_systemd(): subprocess.check_call(['systemctl', 'daemon-reload']) ch_host.service_restart('aodh-api')