mirror of
https://gitlab.archlinux.org/archlinux/infrastructure.git
synced 2025-01-18 08:06:16 +01:00
After=network-online.target is likely insufficient by itself. Fixes: 104d08a1db5e ("archweb: Put most services after network-online.target") Fixes: c844d0cb6ce7 ("Split storage box monitoring into new text collector")
31 lines
665 B
Django/Jinja
31 lines
665 B
Django/Jinja
[Unit]
|
|
Description=archweb mirrorcheck service
|
|
Wants=network-online.target
|
|
After=network-online.target
|
|
|
|
[Service]
|
|
Type=oneshot
|
|
User=archweb
|
|
WorkingDirectory={{ archweb_dir }}
|
|
{% for location in archweb_mirrorcheck_locations %}
|
|
ExecStart={{ archweb_dir }}/env/bin/python manage.py mirrorcheck --location {{ location }}
|
|
{% endfor %}
|
|
Nice=5
|
|
TimeoutStartSec=3600
|
|
|
|
NoNewPrivileges=yes
|
|
ProtectSystem=strict
|
|
ProtectHome=true
|
|
PrivateTmp=true
|
|
PrivateDevices=true
|
|
ProtectKernelTunables=true
|
|
ProtectKernelModules=true
|
|
ProtectControlGroups=true
|
|
ProtectHostname=true
|
|
RestrictRealtime=true
|
|
CapabilityBoundingSet=
|
|
MemoryDenyWriteExecute=true
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|