1
1
mirror of https://gitlab.archlinux.org/archlinux/infrastructure.git synced 2025-01-18 08:06:16 +01:00
infrastructure/roles/archweb/templates/archweb-rebuilderd.service.j2
Evangelos Foutras 7d5dee0a88
Add Wants=network-online.target to a few services
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")
2021-08-28 14:42:41 +03:00

29 lines
644 B
Django/Jinja

[Unit]
Description=archweb update rebuilderd status service
Wants=network-online.target
After=network-online.target
[Service]
Type=oneshot
User=archweb
WorkingDirectory={{ archweb_dir }}
ExecStart={{ archweb_dir }}/env/bin/python manage.py read_rebuilderd_status -v3
ProtectSystem=full
PrivateTmp=true
PrivateDevices=true
ProtectHostname=true
ProtectKernelTunables=true
ProtectKernelModules=true
ProtectKernelLogs=true
ProtectControlGroups=true
NoNewPrivileges=true
RestrictRealtime=true
# Unable to enable due to https://cffi.readthedocs.io/en/latest/using.html#callbacks
#MemoryDenyWriteExecute=true
[Install]
WantedBy=multi-user.target