aboutsummaryrefslogtreecommitdiffstats
path: root/build-root/deb/debian/vpp.service
diff options
context:
space:
mode:
authorSrivatsa Sangli <srivrama@cisco.com>2016-04-15 13:59:00 -0700
committerEd Warnicke <hagbard@gmail.com>2016-04-20 18:44:41 +0000
commit0777915b2a98ea6353e6c0951c3aa195d4751d35 (patch)
tree9c65d16706e07c0409afb71c9d9c9b66cce05d19 /build-root/deb/debian/vpp.service
parente5055d21a970f887a82e2153f87bc0f603a6e4bb (diff)
ubuntu 16.04 build support. Supporting systemd with vpp.service files.
Incorporating review comments : modified debian/control dependencies Change-Id: Ib2fe85d81eb7f1803ef8f54294c7c18cd07c61ba Signed-off-by: Srivatsa Sangli <srivrama@cisco.com>
Diffstat (limited to 'build-root/deb/debian/vpp.service')
-rw-r--r--build-root/deb/debian/vpp.service14
1 files changed, 14 insertions, 0 deletions
diff --git a/build-root/deb/debian/vpp.service b/build-root/deb/debian/vpp.service
new file mode 100644
index 00000000000..a2849296cdc
--- /dev/null
+++ b/build-root/deb/debian/vpp.service
@@ -0,0 +1,14 @@
+[Unit]
+Description=vector packet processing engine
+After=network.target
+
+[Service]
+Type=simple
+ExecStartPre=-/bin/rm -f /dev/shm/*
+ExecStartPre=-/sbin/modprobe igb_uio
+ExecStart=/usr/bin/vpp -c /etc/vpp/startup.conf
+ExecStopPost=/bin/rm -f /dev/shm/*
+Restart=always
+
+[Install]
+WantedBy=multi-user.target