1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/gogs_ynh.git synced 2024-09-03 20:36:23 +02:00
gogs_ynh/conf/systemd.service

21 lines
487 B
SYSTEMD
Raw Normal View History

2016-08-15 15:38:50 +02:00
[Unit]
Description=Gogs (Go Git Service)
2020-12-06 15:37:51 +01:00
After=syslog.target network.target mysql.service slapd.service
2016-08-15 15:38:50 +02:00
[Service]
2020-12-06 14:12:04 +01:00
# Modify these two values and uncomment them if you have repos
# with lots of files and get an HTTP error 500 because of that
2016-08-15 15:38:50 +02:00
###
#LimitMEMLOCK=infinity
#LimitNOFILE=65535
Type=simple
2018-02-08 10:11:36 +01:00
User=__APP__
Group=__APP__
WorkingDirectory=/home/__APP__
2020-12-29 23:34:14 +01:00
ExecStart=__FINALPATH__/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