aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/vppctl_wrapper
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/vppctl_wrapper')
-rw-r--r--scripts/vppctl_wrapper4
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/vppctl_wrapper b/scripts/vppctl_wrapper
new file mode 100644
index 00000000..940e5784
--- /dev/null
+++ b/scripts/vppctl_wrapper
@@ -0,0 +1,4 @@
+#!/bin/bash
+TIMEOUT=5
+
+flock /tmp/vppctl.lock -c "timeout $TIMEOUT vppctl $*"