logo

pleroma

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

pleroma.service (1579B)


  1. [Unit]
  2. Description=Pleroma social network
  3. After=network.target postgresql.service nginx.service
  4. [Service]
  5. KillMode=process
  6. Restart=on-failure
  7. ; Name of the user that runs the Pleroma service.
  8. User=pleroma
  9. ; Make sure that all paths fit your installation.
  10. ; Path to the home directory of the user running the Pleroma service.
  11. Environment="HOME=/opt/pleroma"
  12. ; Path to the folder containing the Pleroma installation.
  13. WorkingDirectory=/opt/pleroma
  14. ; Path to the Pleroma binary.
  15. ExecStart=/opt/pleroma/bin/pleroma start
  16. ExecStop=/opt/pleroma/bin/pleroma stop
  17. ; Some security directives.
  18. ; Use private /tmp and /var/tmp folders inside a new file system namespace, which are discarded after the process stops.
  19. PrivateTmp=true
  20. ; 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.
  21. ProtectHome=true
  22. ; Mount /usr, /boot, and /etc as read-only for processes invoked by this service.
  23. ProtectSystem=full
  24. ; 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.
  25. PrivateDevices=false
  26. ; Ensures that the service process and all its children can never gain new privileges through execve().
  27. NoNewPrivileges=true
  28. ; Drops the sysadmin capability from the daemon.
  29. CapabilityBoundingSet=~CAP_SYS_ADMIN
  30. [Install]
  31. WantedBy=multi-user.target