# /etc/init.d/postgresql start Adjusting environment for postgresql: [ DONE ] Creating default database: /bin/su: unrecognized option `--pgdata=/var/lib/pgsql-root/var/lib/pgsql/data' usage: su [-|-l] [-c "command"] [-s "shell"] [username] [FAILED] опечаточка где-то? [root@alt ~]# rpm -q postgresql8.0-server postgresql8.0-server-8.0.11-alt1
Денис, проверь, плс.
Так а чего тут проверять то? Бага есть и в 8.0 и в 8.1 и в 8.2 - покажу на примере # ls -ld /var/lib/p* ls: /var/lib/p*: No such file or directory # rpm -qa |grep postgresql # apt-get install postgresql8.1-server Reading Package Lists... Done Building Dependency Tree... Done The following extra packages will be installed: postgresql-common postgresql8.1 The following NEW packages will be installed: postgresql-common postgresql8.1 postgresql8.1-server 0 upgraded, 3 newly installed, 0 removed and 0 not upgraded. Need to get 0B/5571kB of archives. After unpacking 14.5MB of additional disk space will be used. Do you want to continue? [Y/n] Y Committing changes... Preparing... ####################################### [100%] 1: postgresql8.1 ####################################### [ 33%] 2: postgresql8.1-server ####################################### [ 66%] groupadd: group psqluser exists Done. # service postgresql start Adjusting environment for postgresql: [ DONE ] Creating default database: /bin/su: unrecognized option `--pgdata=/var/lib/pgsql-root/var/lib/pgsql/data' usage: su [-|-l] [-c "command"] [-s "shell"] [username] [FAILED] вот так вот :( как я понимаю в /etc/init.d/postgresql не отрабатывает action "Creating default database:" /bin/su -s /bin/sh -l po stgres -c "/usr/bin/initdb --pgdata=\"$PG_CHROOT_DIR$PGDATA\""
postgresql8.2-server-8.2.3-alt4
*** Bug 11394 has been marked as a duplicate of this bug. ***
*** Bug 11425 has been marked as a duplicate of this bug. ***
# /usr/sbin/vzctl exec 105 service postgresql start Adjusting environment for postgresql: [ DONE ] Creating default database: /bin/su: unrecognized option `--pgdata=/var/lib/pgsql-root/var/lib/pgsql/data' usage: su [-|-l] [-c "command"] [-s "shell"] [username] [FAILED] # /usr/sbin/vzctl exec 105 rpm -qa | grep postgresql postgresql8.1-8.1.8-alt3 postgresql8.1-server-8.1.8-alt3 postgresql-common-1.0-alt3
postgresql8.2 работает правильно?
юзайте 8.2 - там поправлено.
8.2.4-alt2 - ok