flybrain/infra/units/flypush-restart.timer
acamilo 660c3cf00d
Some checks failed
ci / node 22 (test + typecheck) (push) Has been cancelled
ci / rust stable (cargo test --workspace --release) (push) Has been cancelled
ci / infra/tests/lint.sh (push) Has been cancelled
ci / playwright apps/stage (allowed to fail) (push) Has been cancelled
flybrain v0.4.0: public tree (history retained privately)
2026-09-21 15:09:46 +00:00

18 lines
641 B
SYSTEMD

# infra/units/flypush-restart.timer — the 48h-cap guard.
# docs/design/infra.md section 3: OnUnitActiveSec=23h, RandomizedDelaySec=30m,
# AccuracySec=1m. RandomizedDelaySec keeps the two channels from
# reconnecting at the same instant.
[Unit]
Description=Restart flypush every ~23h (the 48h Twitch broadcast cap guard)
[Timer]
# OnActiveSec bootstraps the first firing when the timer is started after flypush is already
# active: OnUnitActiveSec alone never arms in that case (seen live 2026-09-16).
OnActiveSec=23h
OnUnitActiveSec=23h
RandomizedDelaySec=30m
AccuracySec=1m
Unit=flypush-restart.service
[Install]
WantedBy=timers.target