summaryrefslogtreecommitdiff
path: root/rhel
diff options
context:
space:
mode:
authorLance Richardson <lrichard@redhat.com>2016-11-21 18:01:52 -0500
committerSimon Horman <simon.horman@netronome.com>2016-11-22 14:35:14 +0100
commitdb535fcca5079f0b3ec7beb4b049996cda3e3c18 (patch)
tree13ddbb7aac48f139c0e634b1642fbb5e37f6117c /rhel
parent40b5cf2aefed7b965a7152e516c78376180c4063 (diff)
downloadopenvswitch-db535fcca5079f0b3ec7beb4b049996cda3e3c18.tar.gz
rhel: support enable/disable of ovn services
OVN services (northd, ovn-controller, ovn-controller-vtep) cannot currently be enabled/disabled to start automatically on boot. Add [Install] section for these services to allow them to be enabled and disabled. Reported-by: Mor Kalfon <mkalfon@redhat.com> Signed-off-by: Lance Richardson <lrichard@redhat.com> Signed-off-by: Simon Horman <simon.horman@netronome.com>
Diffstat (limited to 'rhel')
-rw-r--r--rhel/usr_lib_systemd_system_ovn-controller-vtep.service3
-rw-r--r--rhel/usr_lib_systemd_system_ovn-controller.service3
-rw-r--r--rhel/usr_lib_systemd_system_ovn-northd.service3
3 files changed, 9 insertions, 0 deletions
diff --git a/rhel/usr_lib_systemd_system_ovn-controller-vtep.service b/rhel/usr_lib_systemd_system_ovn-controller-vtep.service
index 3bd433128..717ff1254 100644
--- a/rhel/usr_lib_systemd_system_ovn-controller-vtep.service
+++ b/rhel/usr_lib_systemd_system_ovn-controller-vtep.service
@@ -36,3 +36,6 @@ ExecStart=/usr/bin/ovn-controller-vtep -vconsole:emer -vsyslog:err -vfile:info \
--log-file=/var/log/openvswitch/ovn-controller-vtep.log \
--no-chdir --pidfile=${OVS_RUNDIR}/ovn-controller-vtep.pid \
--ovnsb-db=${OVN_DB} --vtep-db=${VTEP_DB}
+
+[Install]
+WantedBy=multi-user.target
diff --git a/rhel/usr_lib_systemd_system_ovn-controller.service b/rhel/usr_lib_systemd_system_ovn-controller.service
index ad1b146c2..2ddcc1ced 100644
--- a/rhel/usr_lib_systemd_system_ovn-controller.service
+++ b/rhel/usr_lib_systemd_system_ovn-controller.service
@@ -20,3 +20,6 @@ Type=oneshot
RemainAfterExit=yes
ExecStart=/usr/share/openvswitch/scripts/ovn-ctl start_controller $OVN_CONTROLLER_OPTS
ExecStop=/usr/share/openvswitch/scripts/ovn-ctl stop_controller
+
+[Install]
+WantedBy=multi-user.target
diff --git a/rhel/usr_lib_systemd_system_ovn-northd.service b/rhel/usr_lib_systemd_system_ovn-northd.service
index 6e23eaa1e..d0045e37e 100644
--- a/rhel/usr_lib_systemd_system_ovn-northd.service
+++ b/rhel/usr_lib_systemd_system_ovn-northd.service
@@ -21,3 +21,6 @@ RemainAfterExit=yes
Environment=OVS_RUNDIR=%t/openvswitch OVS_DBDIR=/var/lib/openvswitch
ExecStart=/usr/share/openvswitch/scripts/ovn-ctl start_northd $OVN_NORTHD_OPTS
ExecStop=/usr/share/openvswitch/scripts/ovn-ctl stop_northd
+
+[Install]
+WantedBy=multi-user.target