1
1
mirror of https://gitlab.archlinux.org/archlinux/infrastructure.git synced 2025-01-18 08:06:16 +01:00
infrastructure/roles/aurweb/templates/aurweb-usermaint.service.j2
Kevin Morris 92586d5b60 change(aurweb): rework ansible config for 6.0.0
Signed-off-by: Kevin Morris <kevr@0cost.org>
2022-02-09 22:13:21 +01:00

38 lines
757 B
Django/Jinja

[Unit]
Description=Remove last login IP address of users who did not login since 7 days in aurweb
Requires=mysqld.service
After=mysqld.service
[Service]
Type=oneshot
User={{ aurweb_user }}
WorkingDirectory={{ aurweb_dir }}
ExecStart=/usr/bin/poetry run aurweb-usermaint
NoNewPrivileges=true
LockPersonality=true
CapabilityBoundingSet=
PrivateDevices=true
PrivateTmp=true
ProtectSystem=strict
ProtectHome=read-only
MemoryDenyWriteExecute=true
RemoveIPC=true
RestrictRealtime=true
RestrictNamespaces=true
RestrictSUIDSGID=true
RestrictAddressFamilies=AF_UNIX
ProtectHostname=true
ProtectControlGroups=true
ProtectKernelLogs=true
ProtectKernelTunables=true
ProtectKernelModules=true
ProtectClock=true
ProtectProc=noaccess
SystemCallArchitectures=native