homeserver/roles/tmaurice.gitea/templates/gitea.service.j2

17 lines
361 B
Text
Raw Normal View History

2021-01-21 09:07:19 +01:00
[Unit]
Description=Gitea git server
After=network.target
[Service]
User={{ gitea_user }}
Group={{ gitea_group }}
2021-01-21 09:07:19 +01:00
ExecStart=/usr/local/bin/gitea web -c /etc/gitea/gitea.ini
Restart=on-failure
WorkingDirectory={{ gitea_home }}
{% if gitea_systemd_cap_net_bind_service %}
AmbientCapabilities=CAP_NET_BIND_SERVICE
{% endif %}
[Install]
WantedBy=multi-user.target