Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rhel: Fix systemd monitoring wrong pid for ovs-monitor-ipsec.
Other services are running without monitors, so systemd can properly track the pid. But ovs-monitor-ipsec is running with a monitor, so there is one more fork and systemd complains about the pid file: systemd[1]: openvswitch-ipsec.service: Supervising process 1037185 which is not our child. We'll most likely not notice when it exits. This is also causing some spurious kills sent to the child on service stop. Fix by running ovs-monitor-ipsec without a monitor as all other OVS services. We can't use start_daemon, that would take care of this, because the script is not on the PATH and we don't want to accidentally change permissions for OVS directories (ipsec runs as root), but we can mimic the behavior. Fixes: f385abd ("rhel: Use PIDFile on forking systemd service files") Signed-off-by: Ilya Maximets <[email protected]>
- Loading branch information