mirror of
https://github.com/roles-ansible/ansible_role_gitea.git
synced 2024-08-16 11:39:50 +02:00
b226af63cd
Signed-off-by: Jens Timmerman <jens.timmerman@gmail.com>
16 lines
473 B
Django/Jinja
16 lines
473 B
Django/Jinja
[Unit]
|
|
Description={{ gitea_fork }} git server
|
|
After=network.target
|
|
|
|
[Service]
|
|
User={{ gitea_user }}
|
|
Group={{ gitea_group }}
|
|
ExecStart={{ gitea_full_executable_path }} web --config {{ gitea_configuration_path }}/gitea.ini --custom-path {{ gitea_custom }}/ --work-path {{ gitea_home }}
|
|
Restart=on-failure
|
|
WorkingDirectory={{ gitea_home }}
|
|
{% if gitea_systemd_cap_net_bind_service %}
|
|
AmbientCapabilities=CAP_NET_BIND_SERVICE
|
|
{% endif %}
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|