]>
Commit | Line | Data |
---|---|---|
d3759fa4 | 1 | # See ovn-controller(8) for details about ovn-controller. |
8ab46714 | 2 | # |
d3759fa4 RB |
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: | |
8ab46714 | 8 | # |
dd8b7d5b RB |
9 | # [System] |
10 | # Environment="OVN_CONTROLLER_OPTS=--ovn-controller-log=-vconsole:emer -vsyslog:err -vfile:info" | |
11 | # | |
12 | # Alternatively, you may specify environment variables in the file /etc/sysconfig/ovn-controller: | |
13 | # | |
14 | # OVN_CONTROLLER_OPTS="--ovn-controller-log=-vconsole:emer -vsyslog:err -vfile:info" | |
8ab46714 | 15 | |
c05ea879 RB |
16 | [Unit] |
17 | Description=OVN controller daemon | |
18 | After=syslog.target | |
19 | Requires=openvswitch.service | |
20 | After=openvswitch.service | |
21 | ||
22 | [Service] | |
94896b2e | 23 | Type=forking |
f385abde | 24 | PIDFile=/var/run/openvswitch/ovn-controller.pid |
94896b2e | 25 | Restart=on-failure |
dd8b7d5b | 26 | EnvironmentFile=-/etc/sysconfig/ovn-controller |
94e1e8be | 27 | EnvironmentFile=/run/openvswitch.useropts |
94896b2e | 28 | ExecStart=/usr/share/openvswitch/scripts/ovn-ctl --no-monitor \ |
94e1e8be | 29 | --ovn-user=${OVS_USER_ID} \ |
94896b2e | 30 | start_controller $OVN_CONTROLLER_OPTS |
1b499313 | 31 | ExecStop=/usr/share/openvswitch/scripts/ovn-ctl stop_controller |
db535fcc LR |
32 | |
33 | [Install] | |
34 | WantedBy=multi-user.target |