From c06eeb0e3c9c1a9fa8f913e2d785b03220bfdabd Mon Sep 17 00:00:00 2001 From: Damjan Marion Date: Tue, 18 Apr 2017 15:26:39 +0200 Subject: Fix "make dist" to include version number, docouple it from rpm packaging Change-Id: If2f9976d668089026c97b897cf449bff09050631 Signed-off-by: Damjan Marion --- extras/rpm/vpp.service | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 extras/rpm/vpp.service (limited to 'extras/rpm/vpp.service') diff --git a/extras/rpm/vpp.service b/extras/rpm/vpp.service new file mode 100644 index 00000000000..40bf9d48c3b --- /dev/null +++ b/extras/rpm/vpp.service @@ -0,0 +1,14 @@ +[Unit] +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 +RestartSec=5s + +[Install] +WantedBy=multi-user.target -- cgit 1.2.3-korg