Playbooks to a new Lilik
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.

64 lines
1.5 KiB

  1. [Unit]
  2. Description=Gitea (Git with a cup of tea)
  3. After=syslog.target
  4. After=network.target
  5. Requires=postgresql.service
  6. #Requires=memcached.service
  7. #Requires=redis.service
  8. ###
  9. # If using socket activation for main http/s
  10. ###
  11. #After=gitea.main.socket
  12. #Requires=gitea.main.socket
  13. #
  14. ###
  15. # (You can also provide gitea an http fallback and/or ssh socket too)
  16. #
  17. # An example of /etc/systemd/system/gitea.main.socket
  18. ###
  19. ##
  20. ## [Unit]
  21. ## Description=Gitea Web Socket
  22. ## PartOf=gitea.service
  23. ##
  24. ## [Socket]
  25. ## Service=gitea.service
  26. ## ListenStream=<some_port>
  27. ## NoDelay=true
  28. ##
  29. ## [Install]
  30. ## WantedBy=sockets.target
  31. ##
  32. ###
  33. [Service]
  34. # Modify these two values and uncomment them if you have
  35. # repos with lots of files and get an HTTP error 500 because
  36. # of that
  37. ###
  38. #LimitMEMLOCK=infinity
  39. #LimitNOFILE=65535
  40. RestartSec=2s
  41. Type=simple
  42. User=git
  43. Group=git
  44. WorkingDirectory=/var/lib/gitea/
  45. # If using Unix socket: tells systemd to create the /run/gitea folder, which will contain the gitea.sock file
  46. # (manually creating /run/gitea doesn't work, because it would not persist across reboots)
  47. RuntimeDirectory=gitea
  48. ExecStart=/usr/local/bin/gitea web --config /etc/gitea/app.ini
  49. Restart=always
  50. Environment=USER=git HOME=/home/git GITEA_WORK_DIR=/var/lib/gitea
  51. # If you want to bind Gitea to a port below 1024, uncomment
  52. # the two values below, or use socket activation to pass Gitea its ports as above
  53. ###
  54. #CapabilityBoundingSet=CAP_NET_BIND_SERVICE
  55. #AmbientCapabilities=CAP_NET_BIND_SERVICE
  56. ###
  57. [Install]
  58. WantedBy=multi-user.target