gogs.service 377 B

123456789101112131415161718192021
  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. Type=simple
  11. User=git
  12. Group=git
  13. WorkingDirectory=/home/git/gogs
  14. ExecStart=/home/git/gogs/gogs web
  15. Restart=always
  16. Environment="USER=git","HOME=/home/git"
  17. [Install]
  18. WantedBy=multi-user.target