Spaces:
Runtime error
Runtime error
Download scripts/launch/aureon-master.sh from GaryLeckey/aureon-os: direct link, hf CLI and curl.
- Browser
- Download file 1.11 kB
-
https://huggingface.co/spaces/GaryLeckey/aureon-os/resolve/main/scripts/launch/aureon-master.sh
- Command line
-
hf download hf://spaces/GaryLeckey/aureon-os/scripts/launch/aureon-master.sh
-
curl -L -o aureon-master.sh https://huggingface.co/spaces/GaryLeckey/aureon-os/resolve/main/scripts/launch/aureon-master.sh
1.11 kB
| # Canonical Aureon launcher for Linux and macOS. Trading follows exchange keys in .env. | |
| set -euo pipefail | |
| ROOT="$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")/../.." && pwd)" | |
| cd "$ROOT" | |
| PYTHON="${PYTHON:-python3}" | |
| # One user scope for the whole session. Children that call setsid or setpgid | |
| # stay in that scope. --stop and --status stay outside and tear the scope down. | |
| # When the user manager is absent, master.py creates a cgroup or walks the pid tree. | |
| if [[ "${1:-}" != "--stop" && "${1:-}" != "--status" && -z "${AUREON_LAUNCHER_INSIDE_SCOPE:-}" ]]; then | |
| if command -v systemd-run >/dev/null 2>&1; then | |
| unit="aureon-launcher-$$" | |
| if systemd-run --user --scope --collect --quiet --unit="${unit}-probe" -- true >/dev/null 2>&1; then | |
| export AUREON_LAUNCHER_SCOPE="$unit" | |
| export AUREON_LAUNCHER_INSIDE_SCOPE=1 | |
| exec systemd-run --user --scope --collect --quiet --unit="$unit" -- \ | |
| env AUREON_LAUNCHER_SCOPE="$unit" AUREON_LAUNCHER_INSIDE_SCOPE=1 \ | |
| "$PYTHON" -m aureon.launch.master "$@" | |
| fi | |
| fi | |
| fi | |
| exec "$PYTHON" -m aureon.launch.master "$@" | |