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.targetEnable 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)
Open Task Scheduler
Create Basic Task → Name it "ObitCC Headless"
Trigger: "When the computer starts"
Action: "Start a program"
Program:
C:\path\to\cc-headless-windows-amd64.exeArguments:
-k YOUR_API_KEY -u https://cc.obitmc.com
Enable "Run whether user is logged on or not"
Check "Run with highest privileges"
Last updated