本站源代码
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

68 rindas
1.5KB

  1. [Unit]
  2. Description=Gitea (Git with a cup of tea)
  3. After=syslog.target
  4. After=network.target
  5. ###
  6. # Don't forget to add the database service requirements
  7. ###
  8. #
  9. #Requires=mysql.service
  10. #Requires=mariadb.service
  11. #Requires=postgresql.service
  12. #Requires=memcached.service
  13. #Requires=redis.service
  14. #
  15. ###
  16. # If using socket activation for main http/s
  17. ###
  18. #
  19. #After=gitea.main.socket
  20. #Requires=gitea.main.socket
  21. #
  22. ###
  23. # (You can also provide gitea an http fallback and/or ssh socket too)
  24. #
  25. # An example of /etc/systemd/system/gitea.main.socket
  26. ###
  27. ##
  28. ## [Unit]
  29. ## Description=Gitea Web Socket
  30. ## PartOf=gitea.service
  31. ##
  32. ## [Socket]
  33. ## ListenStream=
  34. ## NoDelay=true
  35. ##
  36. ## [Install]
  37. ## WantedBy=sockets.target
  38. ##
  39. ###
  40. [Service]
  41. # Modify these two values and uncomment them if you have
  42. # repos with lots of files and get an HTTP error 500 because
  43. # of that
  44. ###
  45. #LimitMEMLOCK=infinity
  46. #LimitNOFILE=65535
  47. RestartSec=2s
  48. Type=simple
  49. User=git
  50. Group=git
  51. WorkingDirectory=/var/lib/gitea/
  52. # If using unix socket: Tells Systemd to create /run/gitea folder to home gitea.sock
  53. # Manual cration would vanish after reboot.
  54. #RuntimeDirectory=gitea
  55. ExecStart=/usr/local/bin/gitea web -c /etc/gitea/app.ini
  56. Restart=always
  57. Environment=USER=git HOME=/home/git GITEA_WORK_DIR=/var/lib/gitea
  58. # If you want to bind Gitea to a port below 1024, uncomment
  59. # the two values below, or use socket activation to pass Gitea its ports as above
  60. ###
  61. #CapabilityBoundingSet=CAP_NET_BIND_SERVICE
  62. #AmbientCapabilities=CAP_NET_BIND_SERVICE
  63. ###
  64. [Install]
  65. WantedBy=multi-user.target
上海开阖软件有限公司 沪ICP备12045867号-1