2021-01-21 09:07:19 +01:00
|
|
|
[Unit]
|
2023-04-25 16:25:50 +02:00
|
|
|
Description={{ gitea_fork }} git server
|
2021-01-21 09:07:19 +01:00
|
|
|
After=network.target
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
User={{ gitea_user }}
|
2022-01-10 09:01:52 +01:00
|
|
|
Group={{ gitea_group }}
|
2023-04-25 16:25:50 +02:00
|
|
|
ExecStart={{ gitea_full_executable_path }} web -c {{ 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
|