Advertisement
seyfahni

gogs.service systemd

May 23rd, 2017
179
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. $ cat /etc/systemd/system/gogs.service
  2. [Unit]
  3. Description=Gogs
  4. After=syslog.target
  5. After=network.target
  6. After=postfix.service
  7. After=mariadb.service mysqld.service postgresql.service memcached.service redis.service
  8.  
  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=git
  18. Group=git
  19. WorkingDirectory=/home/git/gogs
  20. ExecStart=/home/git/gogs/gogs web
  21. Restart=always
  22. Environment=USER=git USERNAME=git HOME=/home/git
  23.  
  24. [Install]
  25. WantedBy=multi-user.target
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement