Bug 13036 - стартовый скрипт в init.d не создаёт БД
Summary: стартовый скрипт в init.d не создаёт БД
Status: CLOSED WONTFIX
Alias: None
Product: Branch 4.0
Classification: Distributions
Component: postgresql8.0 (show other bugs)
Version: 4.0
Hardware: all Linux
: P2 normal
Assignee: Ivan Fedorov
QA Contact: Q.A. 4.0
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-10-05 14:14 MSD by Igor Oleinikov
Modified: 2007-10-07 21:21 MSD (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Igor Oleinikov 2007-10-05 14:14:41 MSD
При первом запуске service postgresql start [root@gate pgsql]# service
postgresql restart 
Service postgresql is not running.                                             
                 [PASSED]
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]
Если делаю руками то всё нормально
/bin/su -s /bin/sh -l postgres -c "/usr/bin/initdb 
--pgdata=/var/lib/pgsql-root/var/lib/pgsql/data"
Comment 1 Ivan Fedorov 2007-10-07 21:21:13 MSD
честно говоря я вообще не знаю, что pgsql 8.0 делает в branch 4.0... его бы
оттуда прибить надо!

Так что рекомендую поставить pg8.2 и не мучаться.