Running as a Service

Please follow the appropriate guide for your system:

Linux (systemd)

Create a service file at /etc/systemd/system/cc-headless.service:

[Unit]
Description=ObitCC Headless Worker
After=network.target

[Service]
Type=simple
User=your-username
WorkingDirectory=/home/your-username/cc-headless
ExecStart=/home/your-username/cc-headless/cc-headless-linux-amd64 -k YOUR_API_KEY -u https://cc.obitmc.com
Restart=always
RestartSec=10
StandardOutput=journal
StandardError=journal

[Install]
WantedBy=multi-user.target

Enable and start the service:

View logs:

macOS (launchd)

Create a plist file at ~/Library/LaunchAgents/com.obitcc.headless.plist:

Load and start:

Windows (Task Scheduler)

  1. Open Task Scheduler

  2. Create Basic Task → Name it "ObitCC Headless"

  3. Trigger: "When the computer starts"

  4. Action: "Start a program"

    • Program: C:\path\to\cc-headless-windows-amd64.exe

    • Arguments: -k YOUR_API_KEY -u https://cc.obitmc.com

  5. Enable "Run whether user is logged on or not"

  6. Check "Run with highest privileges"

Last updated