Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Ensure pid belongs to ovsdb-server in ovn-ctl
When checking if ovsdb-server is running, ensure that the binary
we are going to run matches the one actually running with the the
pid that was in our pidfile.

Signed-off-by: Terry Wilson <twilson@redhat.com>
Signed-off-by: Mark Michelson <mmichels@redhat.com>
Acked-by: Ihar Hrachyshka <ihrachys@redhat.com>
Acked-by: Mark Michelson <mmichels@redhat.com>
  • Loading branch information
otherwiseguy authored and putnopvut committed Jun 9, 2022
1 parent ab7d5b9 commit 4cb3f9d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utilities/ovn-ctl
Expand Up @@ -200,7 +200,7 @@ start_ovsdb__() {
ovn_install_dir "$ovn_etcdir"

# Check and eventually start ovsdb-server for DB
if pidfile_is_running $db_pid_file; then
if pidfile_is_running $db_pid_file ovsdb-server; then
return
fi

Expand Down

0 comments on commit 4cb3f9d

Please sign in to comment.