1
1
mirror of https://gitlab.archlinux.org/archlinux/infrastructure.git synced 2025-01-18 08:06:16 +01:00
infrastructure/roles/archwiki/templates/archwiki-memcached.service.j2
Jelle van der Waa 04fe028c5a archwiki: enable memcached by default and make ram configurable
Introduce a variable to set the memcached memory size.
2019-10-09 13:01:22 +02:00

22 lines
476 B
Django/Jinja

[Unit]
Description=Archwiki Memcached Daemon
After=network.target
[Service]
User={{ archwiki_user }}
Group=memcached
ExecStart=/usr/bin/memcached -s {{ archwiki_memcached_socket }} -m {{ archwiki_memcached_memory }} -o modern
Restart=always
NoNewPrivileges=yes
PrivateTmp=yes
ProtectHome=true
PrivateDevices=yes
ProtectSystem=full
ProtectKernelTunables=true
ProtectKernelModules=true
ProtectControlGroups=true
MemoryDenyWriteExecute=yes
[Install]
WantedBy=multi-user.target