Files
syscall_monitor/run.sh
MarceloZoeng 26a5f99587
All checks were successful
CI / lint-and-build (push) Successful in 8s
中文+README
2026-06-14 12:08:27 +08:00

14 lines
312 B
Bash
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/usr/bin/env bash
set -e
cd "$(dirname "$0")"
if [ "$(id -u)" -ne 0 ]; then
echo "错误:必须以 root 身份运行eBPF 需要 root 权限)" >&2
exit 1
fi
mkdir -p logs
nohup .venv/bin/python main.py > logs/app.log 2>&1 &
echo $! > .pid
echo "已启动pid=$(cat .pid)日志logs/app.log"