[Unit]
Description=APT-OSTree Monitoring Service
Documentation=man:apt-ostree-monitoring.service(8)
After=network-online.target
Wants=network-online.target
Requires=apt-ostreed.service

[Service]
Type=notify
ExecStart=/usr/bin/apt-ostree-monitoring start
ExecStop=/usr/bin/apt-ostree-monitoring stop
ExecReload=/usr/bin/apt-ostree-monitoring status
User=root
Group=root
Restart=always
RestartSec=10
TimeoutStartSec=30
TimeoutStopSec=30

# Security settings
NoNewPrivileges=true
PrivateTmp=true
ProtectSystem=strict
ProtectHome=true
ReadWritePaths=/var/log/apt-ostree /var/lib/apt-ostree

# Environment variables
Environment=RUST_LOG=info
Environment=APT_OSTREE_MONITORING_ENABLED=1

# Logging
StandardOutput=journal
StandardError=journal
SyslogIdentifier=apt-ostree-monitoring

[Install]
WantedBy=multi-user.target 