[Unit] Description=XINFRA PostgreSQL delivery instance %i After=network-online.target Wants=network-online.target [Service] Type=notify User=postgres Group=postgres RuntimeDirectory=postgresql-xinfra/%i RuntimeDirectoryMode=0755 ExecStart=/bin/sh -c 'exec /usr/lib/postgresql/${POSTGRESQL_VERSION}/bin/postgres -D "${POSTGRESQL_DATA_DIR}" -c "config_file=${POSTGRESQL_CONFIG_FILE}" -c "hba_file=${POSTGRESQL_HBA_FILE}"' ExecReload=/bin/kill -HUP $MAINPID Restart=on-failure RestartSec=5s TimeoutStartSec=120s TimeoutStopSec=120s LimitNOFILE=65535 [Install] WantedBy=multi-user.target