# Veilleur du bouton « Lancer une collecte » (installation SANS Docker). # Avec Docker, inutile : le conteneur collecteur le lance déjà. # # sudo cp deploy/shortstats-watch.service /etc/systemd/system/ # sudo systemctl daemon-reload && sudo systemctl enable --now shortstats-watch [Unit] Description=shortstats : collectes demandées depuis le site After=network-online.target postgresql.service Wants=network-online.target [Service] Type=simple User=shortstats EnvironmentFile=/etc/shortstats/collector.env ExecStart=/opt/shortstats/venv/bin/shortstats watch Restart=always RestartSec=10 NoNewPrivileges=true ProtectSystem=strict ProtectHome=true PrivateTmp=true [Install] WantedBy=multi-user.target