2016-08-15 15:38:50 +02:00
|
|
|
[Unit]
|
|
|
|
Description=Gogs (Go Git Service)
|
|
|
|
After=syslog.target
|
|
|
|
After=network.target
|
2017-02-19 22:22:42 +01:00
|
|
|
After=mysql.service
|
2016-08-15 15:38:50 +02:00
|
|
|
After=slapd.service
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
# Modify these two values and uncomment them if you have
|
|
|
|
# repos with lots of files and get an HTTP error 500 because
|
|
|
|
# of that
|
|
|
|
###
|
|
|
|
#LimitMEMLOCK=infinity
|
|
|
|
#LimitNOFILE=65535
|
|
|
|
Type=simple
|
2018-02-08 10:11:36 +01:00
|
|
|
User=__APP__
|
|
|
|
Group=__APP__
|
|
|
|
WorkingDirectory=/home/__APP__
|
2020-11-20 11:13:01 +01:00
|
|
|
ExecStart=/var/www/gogs/gogs web
|
2016-08-15 15:38:50 +02:00
|
|
|
Restart=always
|
2018-02-08 10:11:36 +01:00
|
|
|
Environment=USER=__APP__ HOME=/home/__APP__
|
2016-08-15 15:38:50 +02:00
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|