This commit is contained in:
13
run.sh
Normal file
13
run.sh
Normal file
@@ -0,0 +1,13 @@
|
||||
#!/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"
|
||||
Reference in New Issue
Block a user