chore: update workspace config and memory
This commit is contained in:
15
projects/auto-trader/stop_trader.sh
Executable file
15
projects/auto-trader/stop_trader.sh
Executable file
@@ -0,0 +1,15 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
cd /home/arin/.openclaw/workspace/projects/auto-trader
|
||||
if [ ! -f trader.pid ]; then
|
||||
echo "no trader.pid"
|
||||
exit 0
|
||||
fi
|
||||
PID=$(cat trader.pid)
|
||||
if kill -0 "$PID" 2>/dev/null; then
|
||||
kill "$PID"
|
||||
echo "stopped pid $PID"
|
||||
else
|
||||
echo "pid $PID not running"
|
||||
fi
|
||||
rm -f trader.pid
|
||||
Reference in New Issue
Block a user