Skip to content

Conversation

@Valien
Copy link

@Valien Valien commented Jan 26, 2026

This adds the ability to run hyscale as a background daemon process:

Features:

  • New -detach/-d flag to start process in background
  • New -stop flag to gracefully stop a running detached instance
  • PID file management (.hyscale.pid) prevents duplicate instances
  • Logs redirect to hyscale.log when running in detached mode
  • Process survives terminal/SSH disconnects
  • Clean shutdown handling with automatic PID file cleanup
  • Graceful signal handling (SIGINT/SIGTERM)

Usage:
./hyscale -detach # Start in background
./hyscale -stop # Stop running instance

The detached process continues running independently and logs all output to hyscale.log in the same directory as the executable.

This adds the ability to run hyscale as a background daemon process:

Features:
- New -detach/-d flag to start process in background
- New -stop flag to gracefully stop a running detached instance
- PID file management (.hyscale.pid) prevents duplicate instances
- Logs redirect to hyscale.log when running in detached mode
- Process survives terminal/SSH disconnects
- Clean shutdown handling with automatic PID file cleanup
- Graceful signal handling (SIGINT/SIGTERM)

Usage:
  ./hyscale -detach    # Start in background
  ./hyscale -stop      # Stop running instance

The detached process continues running independently and logs all output
to hyscale.log in the same directory as the executable.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant