📦 Toron Edge Gateway — Universal Installation & Service Manager Guide
Toron provides a production-grade, universal auto-installation script (install.sh) designed for zero-dependency deployment across Linux (systemd) and macOS (launchd) on both ARM64 and AMD64 architectures.
⚡ Quick Installation
Run the universal installer with sudo privileges:
# Clone or navigate to the Toron repository
cd toron_v3
# Run the installer
sudo ./install.sh
# Or via Makefile shortcut
sudo make install
🔍 What install.sh Does Automatically
- OS & Architecture Auto-Detection:
- Detects Operating System:
LinuxorDarwin(macOS). - Detects CPU Architecture:
amd64(x86_64) orarm64(Apple Silicon / aarch64). - Selects the exact pre-compiled binary (e.g.,
toron-linux-amd64,toron-darwin-arm64).
- Detects Operating System:
- Binary Installation (
/usr/local/bin/toron):- Places executable in system PATH at
/usr/local/bin/toron. - Sets execution permissions (
chmod 755).
- Places executable in system PATH at
- System Configuration (
/etc/toron/):- Creates system configuration directory
/etc/toron/. - Copies
config.yamlandroutes.yaml. - Installs static Web Control Center UI dashboard files to
/etc/toron/public/.
- Creates system configuration directory
- Background Service Registration:
- Linux (
systemd): Creates/etc/systemd/system/toron.service, reloads systemctl, enables, and starts the service. - macOS (
launchd): Creates/Library/LaunchDaemons/com.toron.edgegateway.plist, loads, and starts the daemon.
- Linux (
- Daily Log Rotation & Compression:
- Linux (
logrotate): Writes/etc/logrotate.d/toronfor daily rotation, keeping 7 archives withgzipcompression. - macOS (
newsyslog): Writes/etc/newsyslog.d/toron.conffor daily midnight ($D0) rotation, keeping 7 archives withgzip(Z) compression.
- Linux (
⚙️ System Service Management
Linux (systemd)
# Check service status
sudo systemctl status toron
# Restart service after configuration changes
sudo systemctl restart toron
# View live systemd service logs
sudo journalctl -u toron -f
macOS (launchd)
# Check running daemon status
sudo launchctl list | grep toron
# Stop / Start daemon
sudo launchctl unload -w /Library/LaunchDaemons/com.toron.edgegateway.plist
sudo launchctl load -w /Library/LaunchDaemons/com.toron.edgegateway.plist
# View log files
tail -f /var/log/toron/toron.log
tail -f /var/log/toron/toron.error.log
Windows (sc.exe / install.bat)
:: Run installer as Administrator
right-click install.bat -> "Run as administrator"
:: Check Windows Service status
sc query Toron
:: Stop / Start Windows Service
sc stop Toron
sc start Toron
:: Uninstall Windows Service & purge files
install.bat /uninstall
🗑️ Uninstallation
To cleanly remove Toron, stop services, and purge system configuration directories:
# Linux / macOS
sudo ./install.sh --uninstall
# Windows
install.bat /uninstall