diff options
Diffstat (limited to 'build-root/deb/debian/vpp.upstart')
-rw-r--r-- | build-root/deb/debian/vpp.upstart | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/build-root/deb/debian/vpp.upstart b/build-root/deb/debian/vpp.upstart new file mode 100644 index 00000000000..ec731d896f5 --- /dev/null +++ b/build-root/deb/debian/vpp.upstart @@ -0,0 +1,21 @@ +description "vector packet processing engine" +author "Cisco Systems, Inc <listname@cisco.com>" + +manual + +respawn + +pre-start script + rm -f /dev/shm/* || true + # should be there via dkms, but if not, start anyway + modprobe igb_uio || true +end script + + +script + exec vpe $(cat /etc/vpp/startup.conf | sed -e 's/#.*//') +end script + +post-stop script + rm -f /dev/shm/* || true +end script |