Files
syscall_monitor/run.sh
MarceloZoeng 66879f7db8
Some checks failed
CI / lint-and-build (push) Failing after 1m30s
init project+ci/cd
2026-06-09 13:27:51 +08:00

14 lines
283 B
Bash

#!/usr/bin/env bash
set -e
cd "$(dirname "$0")"
if [ "$(id -u)" -ne 0 ]; then
echo "error: must run as root (eBPF requires root)" >&2
exit 1
fi
mkdir -p logs
nohup .venv/bin/python main.py > logs/app.log 2>&1 &
echo $! > .pid
echo "started, pid=$(cat .pid), log: logs/app.log"