diff options
author | Russell Bryant <russell@ovn.org> | 2016-11-17 08:32:28 -0500 |
---|---|---|
committer | Russell Bryant <russell@ovn.org> | 2016-11-17 11:21:24 -0500 |
commit | d3759fa463aede11024809c6c7bc62d731ac1f4e (patch) | |
tree | 777bae07c8a312dcba218e03853c4fb5996455bc /rhel/usr_lib_systemd_system_ovn-northd.service | |
parent | 3bc54be76972fcb6c72b1be2148d03ee494d0264 (diff) | |
download | openvswitch-d3759fa463aede11024809c6c7bc62d731ac1f4e.tar.gz |
rhel: Support ovn-ctl args through env vars.
Update the systemd units for ovn-controller and ovn-northd to support
passing additional arguments to the ovn-ctl scripts through environment
variables. Also add some documentation to the top of these files that
describes how to specify these environment variables in systemd
configuration files.
Add similar documentation to the top of the ovn-controller-vtep system
unit to describe how to specify environment variables for options
passed to ovn-controller-vtep.
Signed-off-by: Russell Bryant <russell@ovn.org>
Co-authored-by: Babu Shanmugam <bschanmu@redhat.com>
Signed-off-by: Babu Shanmugam <bschanmu@redhat.com>
Acked-by: Simon Horman <simon.horman@netronome.com>
Diffstat (limited to 'rhel/usr_lib_systemd_system_ovn-northd.service')
-rw-r--r-- | rhel/usr_lib_systemd_system_ovn-northd.service | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/rhel/usr_lib_systemd_system_ovn-northd.service b/rhel/usr_lib_systemd_system_ovn-northd.service index 5b3b03aef..6e23eaa1e 100644 --- a/rhel/usr_lib_systemd_system_ovn-northd.service +++ b/rhel/usr_lib_systemd_system_ovn-northd.service @@ -1,3 +1,14 @@ +# See ovn-northd(8) for details about ovn-northd. +# +# To customize the ovn-northd service, you may create a configuration file +# in the /etc/systemd/system/ovn-northd.d/ directory. For example, to specify +# additional options to be passed to the "ovn-ctl start_northd" command, you +# could place the following contents in +# /etc/systemd/system/ovn-northd.d/local.conf: +# +# [System] +# Environment="OVN_NORTHD_OPTS=--db-nb-sock=/usr/local/var/run/openvswitch/ovnnb_db.sock --db-sb-sock=/usr/local/var/run/openvswitch/ovnsb_db.sock" + [Unit] Description=OVN northd management daemon After=syslog.target @@ -8,5 +19,5 @@ After=openvswitch.service Type=oneshot RemainAfterExit=yes Environment=OVS_RUNDIR=%t/openvswitch OVS_DBDIR=/var/lib/openvswitch -ExecStart=/usr/share/openvswitch/scripts/ovn-ctl start_northd +ExecStart=/usr/share/openvswitch/scripts/ovn-ctl start_northd $OVN_NORTHD_OPTS ExecStop=/usr/share/openvswitch/scripts/ovn-ctl stop_northd |