Updated the service file with Postgresql

When the pgsql is used as backend, the gitea service
must wait for the database.
This commit is contained in:
Tom
2026-02-10 09:31:52 +01:00
parent 2b3391bf18
commit ab06bc177e

View File

@@ -3,6 +3,10 @@
[Unit]
Description=Gitea (Git with a cup of tea)
After=network.target
{% if gitea_database_server | default('') == "postgresql" %}
Wants=postgresql.service
After=postgresql.service
{% endif %}
[Service]
RestartSec=2s