[Unit]
Description=apt-ostree Usage Reporting
Documentation=man:apt-ostree-countme.service(8)
DefaultDependencies=no
After=network-online.target
Wants=network-online.target

[Service]
Type=oneshot
ExecStart=/usr/bin/apt-ostree countme
User=root
# Create state directory with secure permissions
ExecStartPre=/bin/mkdir -p /var/lib/apt-ostree/countme
ExecStartPre=/bin/chmod 700 /var/lib/apt-ostree/countme
# Privacy-compliant data collection
Environment=APT_OSTREE_COUNTME_PRIVACY=1
# Non-blocking operation
TimeoutSec=30 