aboutsummaryrefslogtreecommitdiffstats
path: root/src/pkg/debian/vpp.service
diff options
context:
space:
mode:
Diffstat (limited to 'src/pkg/debian/vpp.service')
-rw-r--r--src/pkg/debian/vpp.service13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/pkg/debian/vpp.service b/src/pkg/debian/vpp.service
new file mode 100644
index 00000000000..2e86941de8b
--- /dev/null
+++ b/src/pkg/debian/vpp.service
@@ -0,0 +1,13 @@
+[Unit]
+Description=vector packet processing engine
+After=network.target
+
+[Service]
+Type=simple
+ExecStartPre=-/sbin/modprobe uio_pci_generic
+ExecStart=/usr/bin/vpp -c /etc/vpp/startup.conf
+ExecStopPost=/bin/rm -f /dev/shm/db /dev/shm/global_vm /dev/shm/vpe-api
+Restart=always
+
+[Install]
+WantedBy=multi-user.target