searxng-redis.service 760 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. [Unit]
  2. Description=SearXNG redis service
  3. After=syslog.target
  4. After=network.target
  5. Documentation=https://redis.io/documentation
  6. [Service]
  7. Type=simple
  8. User=${REDIS_USER}
  9. Group=${REDIS_USER}
  10. WorkingDirectory=${REDIS_HOME}
  11. Restart=always
  12. TimeoutStopSec=0
  13. Environment=USER=${REDIS_USER} HOME=${REDIS_HOME}
  14. ExecStart=${REDIS_HOME_BIN}/redis-server ${REDIS_CONF}
  15. ExecPaths=${REDIS_HOME_BIN}
  16. LimitNOFILE=65535
  17. NoNewPrivileges=true
  18. PrivateDevices=yes
  19. # ProtectSystem=full
  20. ProtectHome=yes
  21. ReadOnlyDirectories=/
  22. ReadWritePaths=-${REDIS_HOME}/run
  23. UMask=007
  24. PrivateTmp=yes
  25. MemoryDenyWriteExecute=true
  26. ProtectKernelModules=true
  27. ProtectKernelTunables=true
  28. ProtectControlGroups=true
  29. RestrictRealtime=true
  30. RestrictNamespaces=true
  31. [Install]
  32. WantedBy=multi-user.target