strawberry/scripts/strawberry-reduce.service
trvon 1ee208fb4b
Stage 7e: scheduled stop->reduce->start telemetry-reduction maintenance (opt-in)
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-11-11 13:21:13 -07:00

22 lines
839 B
Desktop File

[Unit]
Description=Strawberry scheduled telemetry reduction (stop -> reduce -> start)
Documentation=https://github.com/trvon/strawberry
# Orchestrates strawberry.service; do not run concurrently with a manual reduce.
[Service]
Type=oneshot
ExecStart=/usr/local/lib/strawberry/strawberry-reduce.sh
TimeoutStartSec=30min
User=root
# REVIEWER NOTE: this unit is intentionally LESS sandboxed than
# strawberry-update.service (which runs with no capabilities). It must reach
# systemd to stop and start strawberry.service and rewrite the evidence store,
# so ProtectSystem=strict, PrivateDevices and an empty CapabilityBoundingSet are
# deliberately NOT set (they would break systemctl and the store rewrite).
# Only modest hardening is kept:
NoNewPrivileges=true
ProtectHome=true
ProtectClock=true
RestrictRealtime=true
LockPersonality=true