logo

pleroma

My custom branche(s) on git.pleroma.social/pleroma/pleroma git clone https://anongit.hacktivis.me/git/pleroma.git/

pleroma.service (1500B)


  1. [Unit]
  2. Description=Pleroma social network
  3. After=network.target postgresql.service
  4. [Service]
  5. ExecReload=/bin/kill $MAINPID
  6. KillMode=process
  7. Restart=on-failure
  8. ; Name of the user that runs the Pleroma service.
  9. User=pleroma
  10. ; Declares that Pleroma runs in production mode.
  11. Environment="MIX_ENV=prod"
  12. ; Make sure that all paths fit your installation.
  13. ; Path to the home directory of the user running the Pleroma service.
  14. Environment="HOME=/var/lib/pleroma"
  15. ; Path to the folder containing the Pleroma installation.
  16. WorkingDirectory=/opt/pleroma
  17. ; Path to the Mix binary.
  18. ExecStart=/usr/bin/mix phx.server
  19. ; Some security directives.
  20. ; Use private /tmp and /var/tmp folders inside a new file system namespace, which are discarded after the process stops.
  21. PrivateTmp=true
  22. ; The /home, /root, and /run/user folders can not be accessed by this service anymore. If your Pleroma user has its home folder in one of the restricted places, or use one of these folders as its working directory, you have to set this to false.
  23. ProtectHome=true
  24. ; Mount /usr, /boot, and /etc as read-only for processes invoked by this service.
  25. ProtectSystem=full
  26. ; Sets up a new /dev mount for the process and only adds API pseudo devices like /dev/null, /dev/zero or /dev/random but not physical devices. Disabled by default because it may not work on devices like the Raspberry Pi.
  27. PrivateDevices=false
  28. ; Drops the sysadmin capability from the daemon.
  29. CapabilityBoundingSet=~CAP_SYS_ADMIN
  30. [Install]
  31. WantedBy=multi-user.target