]> git.proxmox.com Git - mirror_ovs.git/blame - rhel/usr_lib_systemd_system_ovn-controller-vtep.service
rhel: Revert RHEL 7.4 comp_ver change
[mirror_ovs.git] / rhel / usr_lib_systemd_system_ovn-controller-vtep.service
CommitLineData
d3759fa4 1# See ovn-controller-vtep(8) for details about ovn-controller-vtep.
8ab46714
RB
2#
3# You may override the following variables to customize ovn-controller-vtep
4# behavior:
5#
6# OVN_DB - Set this variable to the location of the ovsdb server that is
7# serving the OVN_Southbound database. See the manpage for
8# ovn-controller-vtep for more details on the format for the db
9# location.
10#
11# VTEP_DB - Set this variable to the location of the ovsdb server that is
12# serving the hardware_vtep database. See the manpage for
13# ovn-controller-vtep for more details on the format for the db
14# location.
15#
d3759fa4
RB
16# To override these variables, you may create a configuration file
17# in the /etc/systemd/system/ovn-controller-vtep.d/ directory. For example,
18# you could place the following contents in
19# /etc/systemd/system/ovn-controller-vtep.d/local.conf:
20#
dd8b7d5b
RB
21# [System]
22# Environment="OVN_DB=unix:/usr/local/var/run/openvswitch/db.sock" "VTEP_DB=unix:/usr/local/var/run/openvswitch/vtep.sock"
23#
24# Alternatively, you may specify environment variables in the file /etc/sysconfig/ovn-controller-vtep:
25#
26# OVN_DB="unix:/usr/local/var/run/openvswitch/db.sock"
27# VTEP_DB="unix:/usr/local/var/run/openvswitch/vtep.sock"
8ab46714 28
ab4d55dc
RB
29[Unit]
30Description=OVN VTEP gateway controller daemon
31After=syslog.target
32Requires=openvswitch.service
33After=openvswitch.service
34
35[Service]
dd9b0ed5
JCR
36Type=forking
37PIDFile=/var/run/openvswitch/ovn-controller-vtep.pid
94896b2e 38Restart=on-failure
ea8519fc 39Environment=OVN_DB=unix:%t/openvswitch/ovnsb_db.sock
8ab46714 40Environment=VTEP_DB=unix:%t/openvswitch/db.sock
dd8b7d5b 41EnvironmentFile=-/etc/sysconfig/ovn-controller-vtep
94e1e8be 42EnvironmentFile=/run/openvswitch.useropts
dd9b0ed5
JCR
43ExecStart=/usr/share/openvswitch/scripts/ovn-ctl \
44 --db-sb-sock=${OVN_DB} --db-sock=${VTEP_DB} \
94e1e8be 45 --ovn-user=${OVS_USER_ID} \
dd9b0ed5
JCR
46 start_controller_vtep
47ExecStop=/usr/share/openvswitch/scripts/ovn-ctl stop_controller_vtep
db535fcc
LR
48
49[Install]
50WantedBy=multi-user.target