Bug 13036

Summary: стартовый скрипт в init.d не создаёт БД
Product: Branch 4.0 Reporter: Igor Oleinikov <altlinux>
Component: postgresql8.0Assignee: Ivan Fedorov <ns>
Status: CLOSED WONTFIX QA Contact: Q.A. 4.0 <qa-4.0>
Severity: normal    
Priority: P2    
Version: 4.0   
Hardware: all   
OS: Linux   

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 и не мучаться.