OP#414 add service definition

This commit is contained in:
Arne Teuke
2026-02-05 15:43:47 +01:00
parent cccd0c4543
commit e92fc73f11
5 changed files with 54 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
### File created by Puppet ###
### manual changes will be lost ###
### reference https://github.com/go-gitea/gitea/blob/release/v1.25/contrib/systemd/gitea.service ###
###########################################################################################################
[Unit]
Description=Gitea (Git with a cup of tea)
After=network.target
Wants=<%= @ga_db_type %>.service
After=<%= @ga_db_type %>.service
[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=simple
User=<%= @ga_user %>
Group=<%= @ga_user %>
WorkingDirectory=<%= @ga_working_dir %>
ExecStart=/usr/local/bin/gitea web --config /etc/gitea/app.ini
Restart=always
Environment=USER=<%= @ga_user %> HOME=/home/<%= @ga_user %> GITEA_WORK_DIR=<%= @ga_working_dir %>
[Install]
WantedBy=multi-user.target