Обнаружен недочет в документации в пакете postgresql14-server https://git.altlinux.org/gears/p/postgresql14.git?p=postgresql14.git;a=blob;f=altlinux/postgresql.service;h=dbd5326c8934615e9eda2b27416670afd3e95bfe;hb=9de2974a1e69a36cadb2cdfcdeebf638f5b5f76f Если прописать так, как рекомендуется в файле: .include /lib/systemd/system/postgresql.service [Service] # Location of database directory Environment=PGDATA=/home/mydb/pgsql/data и после запуска сервиса посмотреть его статус, получаем: #systemctl status postgresql.service Loaded: bad-settings (Reason: Unit postgresql.service has a bad unit file setting.) Active: inactive (dead) systemd[1]: /etc/systemd/system/postgresql.service:1: Assignment outside of section. Ignoring. Для продолжения нажмите любую клавишу... Как в примере - не получилось, потому что в Альте systemd больше не поддерживает директиву .include Предлагаю удалить эти строки из файла, что бы не вводить в заблуждение пользователей пакета.
postgresql15-1C-15.2-alt2 -> sisyphus: Fri Mar 03 2023 Alexei Takaseev <taf@altlinux> 15.2-alt2 - Cleanup postgresql.service (ALT #44917) - Set database locale different from system (ALT #43207) - Add /etc/sysconfig/postgresql with staring and initializating environment - Initialization databases with secure connection methods - Mandatory set password for superuser postgres