32 lines
783 B
Text
32 lines
783 B
Text
|
|
[Unit]
|
||
|
|
Description=Correcteur des labs Syllabus (étape 11)
|
||
|
|
# Géré par Ansible (rôle correcteur) — ne pas modifier à la main.
|
||
|
|
After=docker.service
|
||
|
|
Requires=docker.service
|
||
|
|
|
||
|
|
[Service]
|
||
|
|
Type=simple
|
||
|
|
# root pour joindre le socket Docker ; groupe www-data pour que le socket
|
||
|
|
# Unix créé (0660) ne soit joignable que par root et le portail.
|
||
|
|
User=root
|
||
|
|
Group=www-data
|
||
|
|
EnvironmentFile=/etc/correcteur.env
|
||
|
|
Environment=HOME=/run/correcteur
|
||
|
|
ExecStart=/usr/local/sbin/correcteur
|
||
|
|
Restart=on-failure
|
||
|
|
RestartSec=2
|
||
|
|
|
||
|
|
RuntimeDirectory=correcteur
|
||
|
|
RuntimeDirectoryMode=0750
|
||
|
|
NoNewPrivileges=true
|
||
|
|
ProtectSystem=strict
|
||
|
|
ProtectHome=true
|
||
|
|
PrivateTmp=true
|
||
|
|
ProtectKernelTunables=true
|
||
|
|
ProtectKernelModules=true
|
||
|
|
ProtectControlGroups=true
|
||
|
|
RestrictAddressFamilies=AF_UNIX
|
||
|
|
|
||
|
|
[Install]
|
||
|
|
WantedBy=multi-user.target
|