2017-01-10 15:09:34 -06:00
|
|
|
[Unit]
|
|
|
|
Description=Gitea git server
|
|
|
|
After=network.target
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
User={{ gitea_user }}
|
2020-09-18 10:46:50 -05:00
|
|
|
ExecStart=/usr/local/bin/gitea web -c /etc/gitea/gitea.ini --custom-path {{ gitea_home }}/custom/
|
2017-01-10 15:09:34 -06:00
|
|
|
Restart=on-failure
|
|
|
|
WorkingDirectory={{ gitea_home }}
|
2020-05-20 07:13:11 -05:00
|
|
|
{% if gitea_systemd_cap_net_bind_service %}
|
2020-05-19 03:27:52 -05:00
|
|
|
AmbientCapabilities=CAP_NET_BIND_SERVICE
|
2020-05-20 07:13:11 -05:00
|
|
|
{% endif %}
|
2017-01-10 15:09:34 -06:00
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|