]>
Commit | Line | Data |
---|---|---|
d3759fa4 RB |
1 | # See ovn-northd(8) for details about ovn-northd. |
2 | # | |
3 | # To customize the ovn-northd service, you may create a configuration file | |
4 | # in the /etc/systemd/system/ovn-northd.d/ directory. For example, to specify | |
5 | # additional options to be passed to the "ovn-ctl start_northd" command, you | |
6 | # could place the following contents in | |
7 | # /etc/systemd/system/ovn-northd.d/local.conf: | |
8 | # | |
dd8b7d5b RB |
9 | # [System] |
10 | # 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" | |
11 | # | |
12 | # Alternatively, you may specify environment variables in the file /etc/sysconfig/ovn-northd: | |
13 | # | |
14 | # 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" | |
d3759fa4 | 15 | |
c05ea879 RB |
16 | [Unit] |
17 | Description=OVN northd management daemon | |
18 | After=syslog.target | |
19 | Requires=openvswitch.service | |
20 | After=openvswitch.service | |
21 | ||
22 | [Service] | |
23 | Type=oneshot | |
24 | RemainAfterExit=yes | |
681a4a21 | 25 | Environment=OVS_RUNDIR=%t/openvswitch OVS_DBDIR=/var/lib/openvswitch |
dd8b7d5b | 26 | EnvironmentFile=-/etc/sysconfig/ovn-northd |
94e1e8be | 27 | EnvironmentFile=/run/openvswitch.useropts |
0d5dd7c2 | 28 | ExecStartPre=-/usr/bin/chown -R ${OVS_USER_ID} ${OVS_DBDIR} |
94e1e8be JCR |
29 | ExecStart=/usr/share/openvswitch/scripts/ovn-ctl \ |
30 | --ovs-user=${OVS_USER_ID} --ovn-user=${OVS_USER_ID} \ | |
31 | start_northd $OVN_NORTHD_OPTS | |
c05ea879 | 32 | ExecStop=/usr/share/openvswitch/scripts/ovn-ctl stop_northd |
db535fcc LR |
33 | |
34 | [Install] | |
35 | WantedBy=multi-user.target |