On Fri, 12 Apr 2002 15:13:54 +0600 Alex Volkov wrote: > >> > [FAILED] > >> > ls: /var/lib/pgsql-root/tmp/.s.PGSQL.*: No such file or directory > MD> Кстати, у меня postgresql так и не старует при запуске системы - > MD> выводит вышеуказанное сообюшение, > MD> а вот при /etc/rc.d/init.d/postrgesql start/stop/restart все нормально > У меня было то же самое. Версия 7.2-alt5. IMHO это из-за того, что > скрипт пытается создать симлинк для сокета из chroot tmp в /tmp, а > сервер еще не поднялся и сокета в chroot'е нет :) Свой я вылечил так: > + until filelist=`ls $PG_CHROOT_DIR/tmp/.s.PGSQL.*`; do sleep 1s; done Не помогло, та же надпись, только в цикле После добавления отладочной опции -d4 выяснилась следующая разница При запуске системы постгрес НЕ ВИДИТ переменную окружения TMPDIR которая ему установлена в /etc/rc.d/init.d/postgresql Очевидно это и есть причина такого поведения А вот почему не видит - это надо спросить у кого-то другого Вот лог при запуске системы Apr 13 11:09:26 max postgresql: Adjusting environment for postgresql: succeeded Apr 13 11:09:27 max postmaster: /usr/bin/postmaster: PostmasterMain: initial environ dump: Apr 13 11:09:27 max postmaster: ----------------------------------------- Apr 13 11:09:27 max postmaster: ^IPWD=/ Apr 13 11:09:27 max postmaster: ^IHOSTNAME=max.april.local Apr 13 11:09:27 max postmaster: ^ICONSOLE=/dev/console Apr 13 11:09:27 max postmaster: ^ILOGLEVEL=1 Apr 13 11:09:27 max postmaster: ^IPREVLEVEL=N Apr 13 11:09:27 max postmaster: ^Irunlevel=3 Apr 13 11:09:27 max postmaster: ^IBOOTUP=color Apr 13 11:09:27 max postmaster: ^IMACHTYPE=i586-alt-linux-gnu Apr 13 11:09:27 max postmaster: ^ISHLVL=2 Apr 13 11:09:27 max postmaster: ^Iprevious=N Apr 13 11:09:27 max postmaster: ^IBOOT_IMAGE=2418-alt4-up Apr 13 11:09:27 max postmaster: ^ISHELL=/bin/bash Apr 13 11:09:27 max postmaster: ^IHOSTTYPE=i586 Apr 13 11:09:27 max postmaster: ^IOSTYPE=linux-gnu Apr 13 11:09:27 max postmaster: ^IHOME=/ Apr 13 11:09:27 max postmaster: ^ITERM=linux Apr 13 11:09:27 max postmaster: ^IPGDATA=/var/lib/pgsql/data Apr 13 11:09:27 max postmaster: ^IPATH=/sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin Apr 13 11:09:27 max postmaster: ^IRUNLEVEL=3 Apr 13 11:09:27 max postmaster: ^IINIT_VERSION=sysvinit-2.84 Apr 13 11:09:27 max postmaster: ^I_=/bin/nice Apr 13 11:09:27 max postmaster: ----------------------------------------- Apr 13 11:09:27 max postgresql: postmaster startup succeeded После ручного запуска Кв╕ 13 11:11:58 max last message repeated 3 times Apr 13 11:12:12 max postgresql: Adjusting environment for postgresql: succeeded Apr 13 11:12:12 max postmaster: /usr/bin/postmaster: PostmasterMain: initial environ dump: Apr 13 11:12:12 max postmaster: ----------------------------------------- Apr 13 11:12:12 max postmaster: ^IPWD=/root Apr 13 11:12:12 max postmaster: ^ICATALINA_HOME=/usr/local/jakarta-tomcat Apr 13 11:12:12 max postmaster: ^ITMPDIR=/var/lib/pgsql-root/tmp Apr 13 11:12:12 max postmaster: ^ILC_MESSAGES=uk_UA.KOI8-U Apr 13 11:12:12 max postmaster: ^IHOSTNAME=max.april.local Apr 13 11:12:12 max postmaster: ^IHISTFILESIZE=9999 Apr 13 11:12:12 max postmaster: ^ICLASSPATH=:/usr/share/pgsql/jdbc7.0-1.2.jar:/usr/local/mysqljdbc/caucho-jdbc-mysql-0.2.7.jar:.:/usr/local/xalan/bin/xalan.jar:/usr/local/xalan/bin/xerces.jar Apr 13 11:12:12 max postmaster: ^ILESSKEY=/etc/.less Apr 13 11:12:12 max postmaster: ^ILESSOPEN=|/usr/bin/lesspipe.sh %s Apr 13 11:12:12 max postmaster: ^ILANGUAGE=POSIX Apr 13 11:12:12 max postmaster: ^ILESS=-MM Apr 13 11:12:12 max postmaster: ^IUSER=root Apr 13 11:12:12 max postmaster: ^ILS_COLORS=no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:ex=01;32:*.cmd=01;32:*.exe=01;32:*.com=01;32:*.btm=01;32:*.bat=01;32:*.tar=01;31:*.tgz=01;31:*.tgy=01;31:*.tbz2=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.lha=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.gz=01;31:*.bz2=01;31:*.bz=01;31:*.tz=01;31:*.rpm=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.xbm=01;35:*.xpm=01;35:*.png=01;35:*.tif=01;35:*.tiff=01;35: Apr 13 11:12:12 max postmaster: ^IMACHTYPE=i586-alt-linux-gnu Apr 13 11:12:12 max postmaster: ^IMAIL=/var/mail/root Apr 13 11:12:12 max postmaster: ^ICVS_RSH=ssh Apr 13 11:12:12 max postmaster: ^IINPUTRC=/etc/inputrc Apr 13 11:12:12 max postmaster: ^IBASH_ENV=/root/.bashrc Apr 13 11:12:12 max postmaster: ^ILANG=POSIX Apr 13 11:12:12 max postmaster: ^IJAVA_HOME=/usr/local/IBMJava2-13 Apr 13 11:12:12 max postmaster: ^ILC_NUMERIC=uk_UA.KOI8-U Apr 13 11:12:12 max postmaster: ^ILOGNAME=root Apr 13 11:12:12 max postmaster: ^ISHLVL=2 Apr 13 11:12:12 max postmaster: ^ILC_CTYPE=uk_UA.KOI8-U Apr 13 11:12:12 max postmaster: ^IMINICOM= -c on -8 Apr 13 11:12:12 max postmaster: ^IMPAGE=-CKOI8-U Apr 13 11:12:12 max postmaster: ^ISHELL=/bin/bash Apr 13 11:12:12 max postmaster: ^IJDK_HOME=/usr/local/j2sdk1.4.0 Apr 13 11:12:12 max postmaster: ^IUSERNAME= Apr 13 11:12:12 max postmaster: ^IHOSTTYPE=i586 Apr 13 11:12:12 max postmaster: ^IOSTYPE=linux-gnu Apr 13 11:12:12 max postmaster: ^IHISTSIZE=9999 Apr 13 11:12:12 max postmaster: ^ITERM=linux Apr 13 11:12:12 max postmaster: ^IHOME=/root Apr 13 11:12:12 max postmaster: ^IPGDATA=/var/lib/pgsql/data Apr 13 11:12:12 max postmaster: ^IPATH=/sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin Apr 13 11:12:12 max postmaster: ^ILC_MONETARY=uk_UA.KOI8-U Apr 13 11:12:12 max postmaster: ^ILC_COLLATE=uk_UA.KOI8-U Apr 13 11:12:12 max postmaster: ^Imc=() { mkdir -p $HOME/.mc/tmp 2>/dev/null; Apr 13 11:12:12 max postmaster: chmod 700 $HOME/.mc/tmp; Apr 13 11:12:12 max postmaster: MC=$HOME/.mc/tmp/mc-$$; Apr 13 11:12:12 max postmaster: /usr/bin/mc -P "$@" >"$MC"; Apr 13 11:12:12 max postmaster: cd "`cat $MC`"; Apr 13 11:12:12 max postmaster: rm -f "$MC"; Apr 13 11:12:12 max postmaster: unset MC Apr 13 11:12:12 max postmaster: } Apr 13 11:12:12 max postmaster: ^I_=/bin/nice Apr 13 11:12:12 max postmaster: ----------------------------------------- Apr 13 11:12:12 max postgresql: postmaster startup succeeded емы: -- С Уважением, Максим Дзюманенко