[Unit]
Description=apt-ostree Automatic Updates
Documentation=man:apt-ostreed-automatic.service(8)
After=network-online.target apt-ostreed.service
Wants=network-online.target
Requires=apt-ostreed.service

[Service]
Type=simple
ExecStart=/usr/bin/apt-ostree upgrade --automatic
User=root
# Debian/Ubuntu specific update handling
Environment=DEBIAN_FRONTEND=noninteractive
Environment=APT_OSTREE_AUTOMATIC=1
# Security updates only by default
Environment=APT_OSTREE_AUTOMATIC_SECURITY_ONLY=1
# Non-blocking operation
TimeoutSec=300
Restart=on-failure
RestartSec=60

[Install]
WantedBy=multi-user.target 