[Unit] Description=Synchronisation Pronote vers CalDAV et XMPP Wants=network-online.target After=network-online.target [Service] Type=oneshot User=pronote-sync Group=pronote-sync WorkingDirectory=/var/lib/pronote-sync EnvironmentFile=/etc/pronote-sync/pronote-sync.env Environment=PYTHONUNBUFFERED=1 StateDirectory=pronote-sync LogsDirectory=pronote-sync ExecStartPre=/opt/pronote-sync/.venv/bin/python /opt/pronote-sync/scripts/check_secrets.py ExecStart=/opt/pronote-sync/.venv/bin/pronote-sync StandardOutput=append:/var/log/pronote-sync/pronote-sync.log StandardError=append:/var/log/pronote-sync/pronote-sync.log NoNewPrivileges=true PrivateTmp=true ProtectHome=true ProtectSystem=strict ReadWritePaths=/var/lib/pronote-sync /var/log/pronote-sync