mirror of
https://gitlab.archlinux.org/archlinux/infrastructure.git
synced 2025-01-18 08:06:16 +01:00
/tmp free space is generally limited on these smaller virtual servers, so use /var/tmp which is more spacious. debuginfod uses this to cache recently extracted files from archives.
24 lines
611 B
Django/Jinja
24 lines
611 B
Django/Jinja
[Unit]
|
|
Description=debuginfod server
|
|
After=network.target network-online.target nss-lookup.target
|
|
|
|
[Service]
|
|
Type=simple
|
|
Environment=TMPDIR=/var/tmp
|
|
ExecStart=/usr/bin/debuginfod -d {{debuginfod_database}} -p {{debuginfod_port}} -F -Z .tar.zst=zstdcat {{debuginfod_package_path}}
|
|
Restart=on-failure
|
|
DynamicUser=yes
|
|
PrivateDevices=true
|
|
PrivateUsers=true
|
|
ProtectKernelTunables=true
|
|
ProtectControlGroups=true
|
|
ProtectKernelLogs=true
|
|
ProtectKernelModules=true
|
|
MemoryDenyWriteExecute=true
|
|
RestrictRealtime=true
|
|
ReadOnlyPaths={{debuginfod_package_path}}
|
|
CacheDirectory=debuginfod
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|