diff options
author | Ed Warnicke <eaw@cisco.com> | 2016-06-08 14:41:40 -0500 |
---|---|---|
committer | Ed Warnicke <hagbard@gmail.com> | 2016-06-08 20:46:08 +0000 |
commit | 43f87e2d23efd8b98eec952a448878914baa39f7 (patch) | |
tree | 7c609816eda91f0c953d96dca01f8f111c49f5d9 /build-root/rpm/vpp.service | |
parent | cf6511560ec7205642b2fb120defbef21b278526 (diff) |
VPP-124: Fix rpms to work out of the box.
Currently, for vpp we are not building any rpms for dpdk or igb_uio.
This is because uio_pci_generic as shipped with centos works with vpp.
However, our vpp rpms do not install kernel module uio_pci_generic at
start up and the /etc/vpp/startup.conf does not configure vpp to use
uio_pci_generic.
vpp rpms should do both, so that when the vpp rpm is installed and
vpp started, it just works out of the box.
This patch fixes the rpms to do so.
Change-Id: Ib934b51f9271cded466d235aa4044bef75c35960
Signed-off-by: Ed Warnicke <eaw@cisco.com>
(cherry picked from commit 40c66394280365ed6b1c5b8f569254f668f80cdb)
Diffstat (limited to 'build-root/rpm/vpp.service')
-rw-r--r-- | build-root/rpm/vpp.service | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/build-root/rpm/vpp.service b/build-root/rpm/vpp.service index fc66b15ccbc..40bf9d48c3b 100644 --- a/build-root/rpm/vpp.service +++ b/build-root/rpm/vpp.service @@ -3,6 +3,8 @@ Description=Vector Packet Processing Process After=syslog.target network.target auditd.service [Service] +ExecStartPre=-/bin/rm -f /dev/shm/db /dev/shm/global_vm /dev/shm/vpe-api +ExecStartPre=-/sbin/modprobe uio_pci_generic ExecStart=/usr/bin/vpp -c /etc/vpp/startup.conf Type=simple Restart=on-failure |