forked from openvswitch/ovs
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rhel, debian: 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. Debian package had a custom patch for this issue, removing now. Fixes: f385abd ("rhel: Use PIDFile on forking systemd service files") Fixes: 9990322 ("debian: Update packaging source from Debian/Ubuntu.") Acked-by: Frode Nordahl <[email protected]> Signed-off-by: Ilya Maximets <[email protected]>
- Loading branch information
Showing
6 changed files
with
7 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters