summaryrefslogtreecommitdiff
path: root/ovn/utilities
diff options
context:
space:
mode:
authorMark Michelson <mmichels@redhat.com>2017-08-02 13:43:04 -0500
committerRussell Bryant <russell@ovn.org>2017-08-03 11:16:49 -0400
commit94896b2e8117e999155a026ccbde9df9800c2c39 (patch)
treecf394c484327da3b12880ff83f10bae3fb9ce292 /ovn/utilities
parentd19cf8bb798ff52d69893d77032a0ec0e9325b75 (diff)
downloadopenvswitch-94896b2e8117e999155a026ccbde9df9800c2c39.tar.gz
rhel: Use systemd Restart option for ovn-controllers.
This change stops the use of OVS's monitor for the ovn-controller and ovn-controller-vtep systemd services. Instead, the services use the systemd Restart option to restart the services automatically if they fail. This patch changes the ovn-controller service Type from "oneshot" to "forking". The Restart option is incompatible with oneshot services. The patch does not change the ovn-controller-vtep service type from "simple", however. Signed-off-by: Mark Michelson <mmichels@redhat.com> Acked-by: Lance Richardson <lrichard@redhat.com> Signed-off-by: Russell Bryant <russell@ovn.org>
Diffstat (limited to 'ovn/utilities')
-rwxr-xr-xovn/utilities/ovn-ctl2
1 files changed, 2 insertions, 0 deletions
diff --git a/ovn/utilities/ovn-ctl b/ovn/utilities/ovn-ctl
index 0b533916d..3e247a1c6 100755
--- a/ovn/utilities/ovn-ctl
+++ b/ovn/utilities/ovn-ctl
@@ -381,6 +381,8 @@ set_defaults () {
DB_SB_CREATE_INSECURE_REMOTE="no"
DB_NB_CREATE_INSECURE_REMOTE="no"
+
+ MONITOR="yes"
}
set_option () {