2017-01-10 22:09:34 +01:00
|
|
|
[Unit]
|
2023-01-27 01:35:16 +01:00
|
|
|
Description={{ gitea_fork }} git server
|
2017-01-10 22:09:34 +01:00
|
|
|
After=network.target
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
User={{ gitea_user }}
|
2021-01-27 15:13:02 +01:00
|
|
|
Group={{ gitea_group }}
|
2023-01-27 01:35:16 +01:00
|
|
|
ExecStart={{ gitea_full_executable_path }} web -c {{ gitea_configuraion_path }}/gitea.ini --custom-path {{ gitea_custom }}/
|
2017-01-10 22:09:34 +01:00
|
|
|
Restart=on-failure
|
|
|
|
WorkingDirectory={{ gitea_home }}
|
2020-05-20 14:13:11 +02:00
|
|
|
{% if gitea_systemd_cap_net_bind_service %}
|
2020-05-19 10:27:52 +02:00
|
|
|
AmbientCapabilities=CAP_NET_BIND_SERVICE
|
2020-05-20 14:13:11 +02:00
|
|
|
{% endif %}
|
2017-01-10 22:09:34 +01:00
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|