]>
Commit | Line | Data |
---|---|---|
84ad1208 AC |
1 | [Unit] |
2 | Description=Open vSwitch Forwarding Unit | |
2a951e85 | 3 | After=ovsdb-server.service network-pre.target systemd-udev-settle.service |
36af136b | 4 | Before=network.target network.service |
84ad1208 AC |
5 | Requires=ovsdb-server.service |
6 | ReloadPropagatedFrom=ovsdb-server.service | |
7 | AssertPathIsReadWrite=/var/run/openvswitch/db.sock | |
8 | PartOf=openvswitch.service | |
9 | ||
10 | [Service] | |
11 | Type=forking | |
c19bf36d | 12 | Restart=on-failure |
e3e738a3 | 13 | Environment=HOME=/var/run/openvswitch |
92d53574 | 14 | EnvironmentFile=/etc/openvswitch/default.conf |
84ad1208 | 15 | EnvironmentFile=-/etc/sysconfig/openvswitch |
4299145c | 16 | EnvironmentFile=-/run/openvswitch/useropts |
e3e738a3 | 17 | @begin_dpdk@ |
112b6336 | 18 | ExecStartPre=-/bin/sh -c '/usr/bin/chown :$${OVS_USER_ID##*:} /dev/hugepages' |
1a4e7075 | 19 | ExecStartPre=-/usr/bin/chmod 0775 /dev/hugepages |
e3e738a3 | 20 | @end_dpdk@ |
84ad1208 AC |
21 | ExecStart=/usr/share/openvswitch/scripts/ovs-ctl \ |
22 | --no-ovsdb-server --no-monitor --system-id=random \ | |
4299145c | 23 | ${OVSUSER} \ |
84ad1208 AC |
24 | start $OPTIONS |
25 | ExecStop=/usr/share/openvswitch/scripts/ovs-ctl --no-ovsdb-server stop | |
26 | ExecReload=/usr/share/openvswitch/scripts/ovs-ctl --no-ovsdb-server \ | |
27 | --no-monitor --system-id=random \ | |
4299145c | 28 | ${OVSUSER} \ |
84ad1208 | 29 | restart $OPTIONS |
c1c69e8a | 30 | TimeoutSec=300 |