Files
clawstor/deploy/systemd/clawstor-ref-sweep.service
T
Omar Sobh 4c4b587193
Build with clawstor cache / Cargo build (clawstor-cached) (pull_request) Failing after 3s
Phase 7i: nightly cluster-ref-sweep systemd timer
03:15 local, Persistent=true. Runs ahead of the 03:30 GC so
operators see the stale-fingerprint report before eviction lands.

Environment= drives the Gitea URL; token expected in a drop-in
(clawstor-ref-sweep.service.d/token.conf) so it doesn't sit in
the unit file. README + install recipe updated.
2026-07-14 12:42:02 -07:00

21 lines
845 B
Desktop File

[Unit]
Description=Clawstor nightly ref sweep (Gitea live-refs → stale-fingerprint report)
Documentation=https://git.redclaw.dev/clawverse/clawstor
After=clawstor-cluster.service network-online.target
[Service]
Type=oneshot
# Retarget with a drop-in when the Gitea URL or token differs.
# Default 14-day retention window; use --retention-days N to override.
Environment=CLAWSTOR_GITEA_URL=https://git.redclaw.dev
# Set the Gitea token via ~/.config/systemd/user/clawstor-ref-sweep.service.d/token.conf:
# [Service]
# Environment=GITEA_TOKEN=xxx
# or via `systemctl --user set-environment` before enabling.
ExecStart=%h/clawstor-deploy/claw-store --config %h/clawstor-deploy/config.toml cluster-ref-sweep --gitea-url ${CLAWSTOR_GITEA_URL} --retention-days 14
StandardOutput=journal
StandardError=journal
[Install]
WantedBy=default.target