VibeGuard supports Linux via systemd user units as the scheduled task mechanism (equivalent to macOS launchd).
- Linux with systemd (most modern distros: Ubuntu 16.04+, Debian 9+, Fedora, Arch, etc.)
systemctlavailable in$PATH- A user session with
systemd --usersupport (most desktop/server setups)
Run the standard setup script — it automatically detects Linux and installs the systemd timer:
bash setup.shThe installer will:
- Copy
scripts/systemd/vibeguard-gc.{service,timer}to~/.config/systemd/user/ - Substitute
__VIBEGUARD_DIR__and__HOME__with the actual paths - Enable and start
vibeguard-gc.timerviasystemctl --user enable --now
If you prefer to install only the systemd units:
bash scripts/install-systemd.shbash scripts/install-systemd.sh --removeThe timer fires every Sunday at 3:00 AM (same schedule as the macOS launchd plist).
The Persistent=true directive ensures the GC runs at the next opportunity if the machine was off at the scheduled time.
| File | Contents |
|---|---|
~/.vibeguard/gc-systemd.log |
stdout + stderr from gc-scheduled.sh |
~/.vibeguard/gc-cron.log |
GC run log written by gc-scheduled.sh itself |
To tail the log:
tail -f ~/.vibeguard/gc-systemd.logTo view systemd journal output:
journalctl --user -u vibeguard-gc.service# Via VibeGuard check script
bash setup.sh --check
# Via systemctl directly
systemctl --user status vibeguard-gc.timer
systemctl --user list-timers vibeguard-gc.timerTimer not starting after install:
# Reload unit files and retry
systemctl --user daemon-reload
systemctl --user enable --now vibeguard-gc.timersystemctl --user commands fail with "Failed to connect to bus":
Your user session may not have a D-Bus socket. This can happen in minimal containers.
Run loginctl enable-linger $USER to enable persistent user services, or start a user session with systemd-run --user.
Verify the next scheduled run:
systemctl --user list-timers --all | grep vibeguard| File | Destination |
|---|---|
scripts/systemd/vibeguard-gc.service |
Template (source) |
scripts/systemd/vibeguard-gc.timer |
Template (source) |
~/.config/systemd/user/vibeguard-gc.service |
Installed unit |
~/.config/systemd/user/vibeguard-gc.timer |
Installed unit |