if[$1-eq1];then
# move log from openvswitch to ovn dir[!-f/var/log/openvswitch/ovn-controller.log]||mv-f/var/log/openvswitch/ovn-controller.log*/var/log/ovn/
chown-Ropenvswitch:openvswitch/var/log/ovn
fi
ifsd_booted;thensystemctldaemon-reloadif[$1-eq1];then# Initial installation systemctl--no-reloadpresetovn-controller.service||:else# Package upgrade, not uninstall /lib/systemd/systemd-update-helpermark-restart-system-unitsovn-controller.service||:fifi
# Save the "enabled" state across the transition of# ownership of ovn-controller.service from openvswitch-ovn-host to# ovn-host.SYSTEMCTL=systemctl
if[$1-eq1];then
ifsd_booted&&"$SYSTEMCTL"--quietis-enabledovn-controller;then
touch/run/openvswitch-rpm-state-ovn-controller||:
fi
ifsd_booted&&[-f/run/openvswitch/ovn-controller.pid];then
touch/run/openvswitch-rpm-state-ovn-controller-started||:
"$SYSTEMCTL"--quietstopovn-controller||:
fi
fi