Background service
You only earn while IdlePay runs. The background service keeps it running without a terminal window, restarts it if it stops, and starts it with the computer.
Install it
Guided setup offers it ("Keep IdlePay running in the background, even after a restart?"). You can also install or remove it directly:
| System | Install | Remove (keeps settings) |
|---|---|---|
| Linux | sudo idlepay service install | sudo idlepay service uninstall |
| macOS | idlepay service install | idlepay service uninstall |
| Windows (command line) | idlepay.exe service install as administrator | idlepay.exe service uninstall as administrator |
| Windows app | Not needed. The app starts with Windows (Settings → Start with Windows). | |
| Docker | Not needed. Use --restart unless-stopped. | |
You must be signed in first. Installing again is safe and refreshes the service.
Linux: systemd
- Unit file:
/etc/systemd/system/idlepay.service. It starts on boot, once the network is up, and restarts 5 seconds after any exit. - It runs as root, reads
/etc/idlepay/config.json, and is sandboxed by systemd. It can only write to/etc/idlepayand the binary's folder. - Installing copies your current settings into
/etc/idlepay.
systemctl status idlepay journalctl -u idlepay -f sudo systemctl stop idlepay # stop until the next boot sudo systemctl start idlepay sudo systemctl disable --now idlepay # stop and don't start on boot
macOS: LaunchAgent
- File:
~/Library/LaunchAgents/io.idlepay.agent.plist. It starts when you log in and macOS restarts it if it stops. - It runs as your user with your own settings, so never use sudo.
- Log:
tail -f ~/Library/Logs/IdlePay.log
launchctl print gui/$(id -u)/io.idlepay.agent | head # is it loaded? launchctl kickstart -k gui/$(id -u)/io.idlepay.agent # restart it
Windows: scheduled task
- A task named IdlePay in Task Scheduler. It runs as SYSTEM at boot, before anyone signs in, with no time limit, also on battery. If it fails, Windows restarts it every minute.
- Installing copies
idlepay.exetoC:\Program Files\IdlePayand your settings toC:\ProgramData\IdlePay\config.json. - Log:
C:\ProgramData\IdlePay\idlepay.log(it rolls over at 10 MB).
schtasks /Query /TN IdlePay Get-Content C:\ProgramData\IdlePay\idlepay.log -Wait -Tail 50
The Windows app and this task can't both share. See Use one or the other.
Permissions
On Linux and Windows the service's settings belong to root or SYSTEM, so only administrators can change what it shares:
- Linux: prefix commands with
sudo:sudo idlepay proxy add …,sudo idlepay setup. - Windows: open Terminal (Admin) and run
& "C:\Program Files\IdlePay\idlepay.exe" …. - macOS: no sudo, ever.
Without the right permissions, commands say "IdlePay runs as a background service on this machine — run this again with sudo" (or "… as administrator" on Windows). idlepay status works for everyone.
Changes apply to the running service within a few seconds. No restart is needed.
Running without the service
idlepay run shares in the foreground until you press Ctrl+C or close the window. It's handy for watching the log, or for running IdlePay under your own supervisor (Docker, tmux, runit, supervisord). Like the service, it restarts its worker if it crashes and keeps itself updated. Only one copy can run with the same settings.