]> git.proxmox.com Git - mirror_ovs.git/blob - rhel/usr_lib_systemd_system_ovn-controller.service
rhel: Support ovn-ctl args through env vars.
[mirror_ovs.git] / rhel / usr_lib_systemd_system_ovn-controller.service
1 # See ovn-controller(8) for details about ovn-controller.
2 #
3 # To customize the ovn-controller service, you may create a configuration file
4 # in the /etc/systemd/system/ovn-controller.d/ directory. For example, to specify
5 # additional options to be passed to the "ovn-ctl start_controller" command, you
6 # could place the following contents in
7 # /etc/systemd/system/ovn-controller.d/local.conf:
8 #
9 # [System]
10 # Environment="OVN_CONTROLLER_OPTS=--ovn-controller-log=-vconsole:emer -vsyslog:err -vfile:info"
11
12 [Unit]
13 Description=OVN controller daemon
14 After=syslog.target
15 Requires=openvswitch.service
16 After=openvswitch.service
17
18 [Service]
19 Type=oneshot
20 RemainAfterExit=yes
21 ExecStart=/usr/share/openvswitch/scripts/ovn-ctl start_controller $OVN_CONTROLLER_OPTS
22 ExecStop=/usr/share/openvswitch/scripts/ovn-ctl stop_controller