ansible-role-gitea/templates/gitea.service.j2

16 lines
337 B
Text
Raw Normal View History

2017-01-10 15:09:34 -06:00
[Unit]
Description=Gitea git server
After=network.target
[Service]
User={{ gitea_user }}
ExecStart=/usr/local/bin/gitea web -c /etc/gitea/gitea.ini
Restart=on-failure
WorkingDirectory={{ gitea_home }}
{% if gitea_systemd_cap_net_bind_service %}
AmbientCapabilities=CAP_NET_BIND_SERVICE
{% endif %}
2017-01-10 15:09:34 -06:00
[Install]
WantedBy=multi-user.target