summarylogtreecommitdiffstats
path: root/ovn-controller-vtep.service
diff options
context:
space:
mode:
authorpcmid2024-08-22 15:41:04 +0800
committerpcmid2024-08-22 15:41:04 +0800
commit3aa2f9e8612ce05eb643c05e9203d6131aeb61ad (patch)
tree71abd9766e924814846ca37d5e0bddf726f13809 /ovn-controller-vtep.service
parentb3245b2143cb0037ae0ba1b9aa3bc2982194f323 (diff)
downloadaur-3aa2f9e8612ce05eb643c05e9203d6131aeb61ad.tar.gz
v24.03.2-2: add systemd files
Diffstat (limited to 'ovn-controller-vtep.service')
-rw-r--r--ovn-controller-vtep.service50
1 files changed, 50 insertions, 0 deletions
diff --git a/ovn-controller-vtep.service b/ovn-controller-vtep.service
new file mode 100644
index 000000000000..0c9c36d7e226
--- /dev/null
+++ b/ovn-controller-vtep.service
@@ -0,0 +1,50 @@
+# See ovn-controller-vtep(8) for details about ovn-controller-vtep.
+#
+# You may override the following variables to customize ovn-controller-vtep
+# 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-vtep for more details on the format for the db
+# location.
+#
+# VTEP_DB - Set this variable to the location of the ovsdb server that is
+# serving the hardware_vtep database. See the manpage for
+# ovn-controller-vtep for more details on the format for the db
+# location.
+#
+# To override these variables, you may create a configuration file
+# in the /etc/systemd/system/ovn-controller-vtep.d/ directory. For example,
+# you could place the following contents in
+# /etc/systemd/system/ovn-controller-vtep.d/local.conf:
+#
+# [System]
+# Environment="OVN_DB=unix:/usr/local/var/run/ovn/db.sock" "VTEP_DB=unix:/usr/local/var/run/ovn/vtep.sock"
+#
+# Alternatively, you may specify environment variables in the file /etc/sysconfig/ovn-controller-vtep:
+#
+# OVN_DB="unix:/usr/local/var/run/ovn/db.sock"
+# VTEP_DB="unix:/usr/local/var/run/ovn/vtep.sock"
+
+[Unit]
+Description=OVN VTEP gateway controller daemon
+Requires=ovs-vswitchd.service
+After=ovs-vswitchd.service
+
+[Service]
+Type=simple
+Restart=on-failure
+Environment=OVS_RUNDIR=%t/openvswitch
+Environment=OVN_RUNDIR=%t/ovn
+Environment=OVN_DB=unix:%t/ovn/ovnsb_db.sock
+EnvironmentFile=-/etc/sysconfig/ovn
+Environment=VTEP_DB=unix:%t/openvswitch/db.sock
+EnvironmentFile=-/etc/sysconfig/ovn-controller-vtep
+ExecStart=/usr/bin/ovn-controller-vtep -vconsole:emer -vsyslog:err -vfile:info \
+ --log-file=/var/log/ovn/ovn-controller-vtep.log \
+ --user=${OVN_USER_ID} \
+ --no-chdir --pidfile=${OVN_RUNDIR}/ovn-controller-vtep.pid \
+ --ovnsb-db=${OVN_DB} --vtep-db=${VTEP_DB}
+
+[Install]
+WantedBy=multi-user.target