Bug 30101 - PostgreSQL и SystemD
Summary: PostgreSQL и SystemD
Status: NEW
Alias: None
Product: Branch p7
Classification: Distributions
Component: postgresql9.3-server (show other bugs)
Version: не указана
Hardware: all Linux
: P3 enhancement
Assignee: Andriy Stepanov (stanv)
QA Contact: qa-p7@altlinux.org
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-06-02 12:52 MSK by alex@altlinux.org
Modified: 2014-06-02 12:55 MSK (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description alex@altlinux.org 2014-06-02 12:52:28 MSK
Введение:
При использовании дистрибутивов с SystemD не запускается:

 1  root@hostname # systemctl start postgresql
 2  Job for postgresql.service failed. See systemctl status postgresql.service and journalctl -xn for details.
 3  root@hostname # 
 4  root@hostname # systemctl status postgresql
 5  postgresql.service - PostgreSQL database server
 6     Loaded: loaded (/lib/systemd/system/postgresql.service; enabled)
 7     Active: failed (Result: exit-code) since Пн 2014-06-02 12:11:56 FET; 8s ago
 8    Process: 3836 ExecStartPre=/usr/bin/postgresql-check-db-dir ${PGDATA} (code=exited, status=1/FAILURE)
 9  
10  июн 02 12:11:56 host-3.localdomain systemd[1]: Starting PostgreSQL database server...
11  июн 02 12:11:56 host-3.localdomain postgresql-check-db-dir[3836]: "/var/lib/pgsql/data" is missing or empty.
12  июн 02 12:11:56 host-3.localdomain postgresql-check-db-dir[3836]: Use "/etc/init.d/postgresql initdb" to initialize the database cluster.
13  июн 02 12:11:56 host-3.localdomain postgresql-check-db-dir[3836]: See /usr/share/doc/postgresql-9.3.4/README.rpm-dist for more information.
14  июн 02 12:11:56 host-3.localdomain systemd[1]: postgresql.service: control process exited, code=exited status=1
15  июн 02 12:11:56 host-3.localdomain systemd[1]: Failed to start PostgreSQL database server.
16  июн 02 12:11:56 host-3.localdomain systemd[1]: Unit postgresql.service entered failed state

Проблема:
Было бы логично воспользоваться предложенной в строке №12 командой, если бы не тот факт, что в ней используется часть от SysVinit.

В документации, отсылка на которую есть в строке №13, говорится о "postgresql-setup initdb", такой команды нет в пакете.
Comment 1 alex@altlinux.org 2014-06-02 12:55:09 MSK
Bugzilla порезала длинные строки -> скопировал вывод на http://pastebin.com/a3WexksD