infra/templates/forgejo/forgejo.service.j2

20 lines
473 B
Text
Raw Normal View History

2023-08-03 17:24:07 +00:00
[Unit]
2023-12-08 15:00:38 +00:00
Description=Forgejo
2023-08-03 17:24:07 +00:00
After=syslog.target
After=network.target
[Service]
# Uncomment the next line if you have repos with lots of files and get a HTTP 500 error because of that
# LimitNOFILE=524288:524288
RestartSec=2s
Type=notify
User=git
Group=git
WorkingDirectory=/var/lib/gitea/
2023-12-08 15:00:38 +00:00
ExecStart=/usr/local/bin/forgejo web --config /etc/gitea/app.ini
2023-08-03 17:24:07 +00:00
Restart=always
Environment=USER=git HOME=/home/git GITEA_WORK_DIR=/var/lib/gitea
[Install]
WantedBy=multi-user.target