Premier commit
Cette révision appartient à :
révision
0ec3f0e133
109 fichiers modifiés
+17644
Aucun fichier ne correspond à votre recherche
@@ -0,0 +1,31 @@
|
||||
[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
|
||||
Référencer dans un nouveau ticket
Bloquer un utilisateur