gogs_new.service 579 B

1234567891011121314151617181920212223242526
  1. [Unit]
  2. Description=Gogs (Go Git Service)
  3. After=syslog.target
  4. After=network.target
  5. #After=mysqld.service
  6. #After=postgresql.service
  7. #After=memcached.service
  8. #After=redis.service
  9. [Service]
  10. # Modify these two values and uncomment them if you have
  11. # repos with lots of files and get an HTTP error 500 because
  12. # of that
  13. ###
  14. #LimitMEMLOCK=infinity
  15. #LimitNOFILE=65535
  16. Type=simple
  17. User=gogs
  18. Group=gogs
  19. WorkingDirectory=/srv/gogs/
  20. ExecStart=/usr/share/gogs/gogs web --config /srv/gogs/conf/app.ini
  21. Restart=always
  22. Environment=USER=gogs HOME=/home/gogs
  23. [Install]
  24. WantedBy=multi-user.target