chatdesk-ui/postgres_15.8.1.044/ansible/files/postgrest.service.j2

19 lines
479 B
Django/Jinja

[Unit]
Description=PostgREST
Requires=postgrest-optimizations.service
After=postgrest-optimizations.service
[Service]
Type=simple
# We allow the base config (sent from the worker) to override the generated config
ExecStartPre=/etc/postgrest/merge.sh /etc/postgrest/generated.conf /etc/postgrest/base.conf
ExecStart=/opt/postgrest /etc/postgrest/merged.conf
User=postgrest
Slice=services.slice
Restart=always
RestartSec=3
LimitNOFILE=100000
[Install]
WantedBy=multi-user.target