rhel: Add variables for OVN and VTEP db locations.
[cascardo/ovs.git] / rhel / usr_lib_systemd_system_ovn-controller.service
index 7637fe7..48dd194 100644 (file)
@@ -1,3 +1,11 @@
+#
+# You may override the following variables to customize ovn-controller behavior:
+#
+#   OVN_DB - Set this variable to the location of the ovsdb server that is
+#            serving the OVN_Southbound database.  See the manpage for
+#            ovn-controller for more details on the format for the db location.
+#
+
 [Unit]
 Description=OVN controller daemon
 After=syslog.target
@@ -7,7 +15,7 @@ After=openvswitch.service
 [Service]
 Type=simple
 Environment=OVS_RUNDIR=%t/openvswitch
+Environment=OVN_DB=unix:%t/openvswitch/db.sock
 ExecStart=/usr/bin/ovn-controller -vconsole:emer -vsyslog:err -vfile:info \
           --log-file=/var/log/openvswitch/ovn-controller.log \
-          --no-chdir --pidfile=${OVS_RUNDIR}/ovn-controller.pid \
-          unix:${OVS_RUNDIR}/db.sock
+          --no-chdir --pidfile=${OVS_RUNDIR}/ovn-controller.pid ${OVN_DB}