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

17 lines
443 B
Text
Raw Normal View History

2021-01-21 09:07:19 +01:00
[Unit]
Description={{ gitea_fork }} git server
2021-01-21 09:07:19 +01:00
After=network.target
[Service]
User={{ gitea_user }}
Group={{ gitea_group }}
ExecStart={{ gitea_full_executable_path }} web --config {{ gitea_configuraion_path }}/gitea.ini --custom-path {{ gitea_custom }}/
2021-01-21 09:07:19 +01:00
Restart=on-failure
WorkingDirectory={{ gitea_home }}
{% if gitea_systemd_cap_net_bind_service %}
AmbientCapabilities=CAP_NET_BIND_SERVICE
{% endif %}
[Install]
WantedBy=multi-user.target