Files
trading-agent/scripts/uninstall_launchd.sh
T

13 lines
429 B
Bash
Executable File

#!/usr/bin/env bash
# Remove the launchd jobs and print how to clear the wake schedule.
set -euo pipefail
LA="$HOME/Library/LaunchAgents"
for p in caffeinate nightly market_open; do
launchctl unload "$LA/ai.tradingagent.$p.plist" 2>/dev/null || true
rm -f "$LA/ai.tradingagent.$p.plist"
echo "removed ai.tradingagent.$p"
done
echo
echo "Also clear the nightly wake schedule (needs sudo):"
echo " sudo pmset repeat cancel"