ALT Linux Community general discussions
 help / color / mirror / Atom feed
* [Comm] pgsql первый запуск
@ 2007-10-04 13:32 altlinux
  2007-10-04 19:56 ` Michael Shigorin
  0 siblings, 1 reply; 3+ messages in thread
From: altlinux @ 2007-10-04 13:32 UTC (permalink / raw)
  To: ALT Linux Community general discussions

всем привет
[root@gate locale]# uname -a
Linux хххх.ru 2.6.18-ovz-smp-alt14 #1 SMP Wed May 2 15:41:34 MSD 2007 
x86_64 GNU/Linux

установил и пытаюсь запустить
[root@gate pgsql]# service postgresql restart pan --inet|grep 54
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"
после создания БД сервис грузится нормально.
В чем может быть проблема?

И еще один вопрос если я в стартовом скрипте правлю
PG_CHROOT_DIR='мой путь'
то лезит ошибка
[root@gate init.d]# service postgresql restart
Service postgresql is not 
running.                                                                                                          
[PASSED]
Adjusting environment for 
postgresql:                                                                                                       
[ DONE ]
Starting postmaster service: FATAL:  invalid value for parameter 
"lc_monetary": "ru_RU.KOI8-R"
                                                                                                                                            
[FAILED]
Пробывал сделать  link непомогло
[root@gate locale]# ls -l|grep KOI8-R
lrwxrwxrwx 1 root root   29 Oct  4 16:31 ru_RU.KOI8-R -> 
/usr/lib64/locale/ru_RU.koi8r

Что можно подкрутить или как правильнее указать где лежать базе





^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2007-10-05 11:15 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-10-04 13:32 [Comm] pgsql первый запуск altlinux
2007-10-04 19:56 ` Michael Shigorin
2007-10-05 11:15   ` altlinux

ALT Linux Community general discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
		mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
	public-inbox-index community

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.community


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git