rhel: Add variables for OVN and VTEP db locations.
[cascardo/ovs.git] / rhel / usr_lib_systemd_system_ovn-controller.service
1 #
2 # You may override the following variables to customize ovn-controller behavior:
3 #
4 #   OVN_DB - Set this variable to the location of the ovsdb server that is
5 #            serving the OVN_Southbound database.  See the manpage for
6 #            ovn-controller for more details on the format for the db location.
7 #
8
9 [Unit]
10 Description=OVN controller daemon
11 After=syslog.target
12 Requires=openvswitch.service
13 After=openvswitch.service
14
15 [Service]
16 Type=simple
17 Environment=OVS_RUNDIR=%t/openvswitch
18 Environment=OVN_DB=unix:%t/openvswitch/db.sock
19 ExecStart=/usr/bin/ovn-controller -vconsole:emer -vsyslog:err -vfile:info \
20           --log-file=/var/log/openvswitch/ovn-controller.log \
21           --no-chdir --pidfile=${OVS_RUNDIR}/ovn-controller.pid ${OVN_DB}