1
1
Fork 0
mirror of https://github.com/roles-ansible/ansible_role_gitea.git synced 2024-08-16 11:39:50 +02:00
ansible_role_gitea/templates/gitea.service.j2

17 lines
437 B
Text
Raw Normal View History

2017-01-10 22:09:34 +01:00
[Unit]
Description={{ gitea_fork }} git server
2017-01-10 22:09:34 +01:00
After=network.target
[Service]
User={{ gitea_user }}
Group={{ gitea_group }}
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 }}
{% if gitea_systemd_cap_net_bind_service %}
AmbientCapabilities=CAP_NET_BIND_SERVICE
{% endif %}
2017-01-10 22:09:34 +01:00
[Install]
WantedBy=multi-user.target