bookwyrm-worker.service 980 B

12345678910111213141516171819202122232425262728293031323334
  1. [Unit]
  2. Description=BookWyrm worker
  3. After=network.target postgresql.service redis.service
  4. [Service]
  5. User=bookwyrm
  6. Group=bookwyrm
  7. WorkingDirectory=/opt/bookwyrm
  8. ExecStart=/opt/bookwyrm/venv/bin/celery -A celerywyrm worker -l info -Q high_priority,medium_priority,low_priority,streams,images,suggested_users,email,connectors,lists,inbox,imports,import_triggered,broadcast,misc
  9. StandardOutput=journal
  10. StandardError=inherit
  11. ProtectSystem=strict
  12. ProtectHome=tmpfs
  13. InaccessiblePaths=-/media -/mnt -/srv
  14. PrivateTmp=yes
  15. TemporaryFileSystem=/var /run /opt
  16. PrivateUsers=true
  17. PrivateDevices=true
  18. BindReadOnlyPaths=/opt/bookwyrm
  19. BindPaths=/opt/bookwyrm/images /opt/bookwyrm/static /var/run/postgresql
  20. LockPersonality=yes
  21. MemoryDenyWriteExecute=true
  22. PrivateMounts=true
  23. ProtectHostname=true
  24. ProtectClock=true
  25. ProtectKernelTunables=true
  26. ProtectKernelModules=true
  27. ProtectKernelLogs=true
  28. ProtectControlGroups=true
  29. RestrictRealtime=true
  30. RestrictNamespaces=net
  31. [Install]
  32. WantedBy=multi-user.target