# PROPOSITION, NON POSEE. À copier dans /etc/systemd/system/ sur le VPS (par Théo, avec sudo), avec le timer voisin. # Prérequis : mkdir -p /opt/vercors-stats ~/stats-vercors ; copier collecte/statistiques_vercors.py dans /opt/vercors-stats/. [Unit] Description=Statistiques de frequentation de vercors.me (agregation des journaux Caddy, sans IP) [Service] Type=oneshot User=debian ExecStart=/usr/bin/python3 -I /opt/vercors-stats/statistiques_vercors.py --journaux "/var/log/caddy/vercors.me*.log*" --etat /home/debian/stats-vercors/etat.json --sortie /srv/vercors.me/data/statistiques.json