[Unit] Description=CornafServer System Telemetry Daemon After=network.target [Service] Type=simple # Exécution sous utilisateur non-privilégié User=nobody Group=nogroup # Chemin vers le script sur le serveur WorkingDirectory=/srv/site/deploy ExecStart=/usr/bin/python3 /srv/site/deploy/telemetry_daemon.py # Redémarrage automatique en cas de pépin Restart=always RestartSec=5 # Durcissement de sécurité (sandboxing systemd) NoNewPrivileges=true ProtectSystem=strict ProtectHome=true PrivateTmp=true PrivateDevices=true ProtectKernelTunables=true ProtectKernelModules=true ProtectControlGroups=true CapabilityBoundingSet= [Install] WantedBy=multi-user.target