shortstats/deploy/shortstats-watch.service
ploush d5312c3667
Some checks failed
build / test (push) Failing after 1m3s
build / images (collector) (push) Has been skipped
build / images (web) (push) Has been skipped
Upgrade 1.1.0
2026-11-01 13:47:38 +01:00

24 lines
711 B
Desktop File

# 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