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.

30 lines
724B

  1. [Unit]
  2. Description=Gitea (Git with a cup of tea)
  3. After=syslog.target
  4. After=network.target
  5. #After=mariadb.service
  6. [Service]
  7. # Modify these two values and uncomment them if you have
  8. # repos with lots of files and get an HTTP error 500 because
  9. # of that
  10. ###
  11. #LimitMEMLOCK=infinity
  12. #LimitNOFILE=65535
  13. RestartSec=2s
  14. Type=simple
  15. User=git
  16. Group=git
  17. WorkingDirectory=/var/lib/gitea/
  18. ExecStart=/usr/local/bin/gitea web -c /etc/gitea/app.ini
  19. Restart=always
  20. Environment=USER=git HOME=/home/git GITEA_WORK_DIR=/var/lib/gitea
  21. # If you want to bind Gitea to a port below 1024 uncomment
  22. # the two values below
  23. ###
  24. #CapabilityBoundingSet=CAP_NET_BIND_SERVICE
  25. #AmbientCapabilities=CAP_NET_BIND_SERVICE
  26. [Install]
  27. WantedBy=multi-user.target