gogs.service.j2 507 B

12345678910111213141516171819202122
  1. [Unit]
  2. Description=Gogs (Go Git Service)
  3. After=syslog.target
  4. After=network.target
  5. [Service]
  6. # Modify these two values and uncomment them if you have
  7. # repos with lots of files and get an HTTP error 500 because
  8. # of that
  9. ###
  10. #LimitMEMLOCK=infinity
  11. #LimitNOFILE=65535
  12. Type=simple
  13. User={{ gogs_user }}
  14. Group={{ gogs_group }}
  15. WorkingDirectory={{ gogs_home }}/gogs
  16. ExecStart={{ gogs_home }}/gogs/gogs web
  17. Restart=always
  18. Environment=USER={{ gogs_user }} HOME={{ gogs_home }}
  19. [Install]
  20. WantedBy=multi-user.target