]> git.proxmox.com Git - mirror_ovs.git/blob - rhel/usr_lib_systemd_system_ovs-vswitchd.service.in
889740f1a46676b84b24c2108ffbfaab974119e6
[mirror_ovs.git] / rhel / usr_lib_systemd_system_ovs-vswitchd.service.in
1 [Unit]
2 Description=Open vSwitch Forwarding Unit
3 After=ovsdb-server.service network-pre.target systemd-udev-settle.service
4 Before=network.target network.service
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
12 Restart=on-failure
13 Environment=HOME=/var/run/openvswitch
14 EnvironmentFile=/etc/openvswitch/default.conf
15 EnvironmentFile=-/etc/sysconfig/openvswitch
16 EnvironmentFile=-/run/openvswitch/useropts
17 @begin_dpdk@
18 ExecStartPre=-/bin/sh -c '/usr/bin/chown :${OVS_USER_ID##*:} /dev/hugepages'
19 ExecStartPre=-/usr/bin/chmod 0775 /dev/hugepages
20 @end_dpdk@
21 ExecStart=/usr/share/openvswitch/scripts/ovs-ctl \
22 --no-ovsdb-server --no-monitor --system-id=random \
23 ${OVSUSER} \
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 \
28 ${OVSUSER} \
29 restart $OPTIONS
30 TimeoutSec=300