Files
syscall_monitor/run.sh

14 lines
283 B
Bash
Raw Normal View History

2026-06-09 13:27:51 +08:00
#!/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
2026-06-11 00:52:51 +08:00
nohup .venv/bin/python main.py > logs/app.log 2>&1 &
echo $! > .pid
echo "started, pid=$(cat .pid), log: logs/app.log"