Files
syscall_monitor/run.sh
MarceloZoeng 94d2c35e8a
All checks were successful
CI / lint-and-build (push) Successful in 20s
CD / deploy (push) Successful in 13s
no message
2026-06-11 00:52: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"