# See ovn-controller(8) for details about ovn-controller. # # To customize the ovn-controller service, you may create a configuration file # in the /etc/systemd/system/ovn-controller.d/ directory. For example, to specify # additional options to be passed to the "ovn-ctl start_controller" command, you # could place the following contents in # /etc/systemd/system/ovn-controller.d/local.conf: # # [System] # Environment="OVN_CONTROLLER_OPTS=--ovn-controller-log=-vconsole:emer -vsyslog:err -vfile:info" # # Alternatively, you may specify environment variables in the file /etc/sysconfig/ovn-controller: # # OVN_CONTROLLER_OPTS="--ovn-controller-log=-vconsole:emer -vsyslog:err -vfile:info" [Unit] Description=OVN controller daemon After=syslog.target Requires=openvswitch.service After=openvswitch.service [Service] Type=forking PIDFile=/var/run/openvswitch/ovn-controller.pid Restart=on-failure EnvironmentFile=-/etc/sysconfig/ovn-controller EnvironmentFile=/run/openvswitch.useropts ExecStart=/usr/share/openvswitch/scripts/ovn-ctl --no-monitor \ --ovn-user=${OVS_USER_ID} \ start_controller $OVN_CONTROLLER_OPTS ExecStop=/usr/share/openvswitch/scripts/ovn-ctl stop_controller [Install] WantedBy=multi-user.target