Various compilation scripts & patches for Linux programs.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
818 B

  1. Pekka Helenius (~Fincer):
  2. Fix crucial issues of PacVis server default behavior
  3. - run the server as a user, not as root
  4. Root is not truly required and may cause serious security issues
  5. - remove non-working restart loop which renders the server unusable
  6. - increase memory limit. Adjust for your needs
  7. --- a/pacvis@.service
  8. +++ b/pacvis@.service
  9. @@ -3,14 +3,12 @@
  10. After=network.target
  11. [Service]
  12. -ExecStart=/usr/bin/pacvis -p %i
  13. +User=%i
  14. +ExecStart=/usr/bin/pacvis
  15. +PrivateTmp=true
  16. -# Limit memory at 400M to workaround pyalpm potential memory leak
  17. -LimitAS=400M
  18. -
  19. -# Restart every >2 seconds to avoid StartLimitInterval failure
  20. -RestartSec=2
  21. -Restart=always
  22. +# Limit memory at 1000M to workaround pyalpm potential memory leak
  23. +LimitAS=1000M
  24. [Install]
  25. -WantedBy=multi-user.target
  26. +WantedBy=default.target