gogs.service 553 B

123456789101112131415161718192021222324252627
  1. [Unit]
  2. Description=Gogs
  3. After=syslog.target
  4. After=network.target
  5. #After=mysqld.service
  6. #After=mariadb.service
  7. #After=postgresql.service
  8. #After=memcached.service
  9. #After=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. Type=simple
  18. User=git
  19. Group=git
  20. WorkingDirectory=/home/git/gogs
  21. ExecStart=/home/git/gogs/gogs web
  22. Restart=always
  23. Environment=USER=git HOME=/home/git
  24. [Install]
  25. WantedBy=multi-user.target