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.

33 lines
832 B

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