mirror of
https://github.com/kubeshark/kubeshark.git
synced 2025-07-02 19:15:40 +00:00
fix multi runner passive tapper command
This commit is contained in:
parent
e2df769ebd
commit
81c6b66999
@ -1,6 +1,7 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"flag"
|
||||
"github.com/gofiber/fiber/v2"
|
||||
"mizuserver/pkg/inserter"
|
||||
"mizuserver/pkg/middleware"
|
||||
@ -14,10 +15,11 @@ func main() {
|
||||
|
||||
app := fiber.New()
|
||||
|
||||
go inserter.StartReadingFiles("/tmp/up9hars") // process to read files and insert to DB
|
||||
var harDir = flag.String("hardir", "/tmp/mizuhars", "Directory in which to store output har files")
|
||||
go inserter.StartReadingFiles(*harDir) // process to read files and insert to DB
|
||||
|
||||
|
||||
middleware.FiberMiddleware(app) // Register Fiber's middleware for app.
|
||||
|
||||
app.Static("/", "./site")
|
||||
|
||||
//Simple route to know server is running
|
||||
|
@ -2,6 +2,6 @@
|
||||
|
||||
# this script runs both executables and exits everything if one fails
|
||||
./apiserver &
|
||||
./passivetapper -i eth0 &
|
||||
./passivetapper -i any -hardump -hardir /tmp/mizuhars -harentriesperfile 50 &
|
||||
wait -n
|
||||
pkill -P $$
|
||||
|
Loading…
Reference in New Issue
Block a user