ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: Sergei <serpiph@pochtamt.ru>
To: mandrake-russian@altlinux.ru
Subject: Re: [mdk-re] Starting PostgeSQL whith -i options
Date: Wed Sep 19 00:16:00 2001
Message-ID: <200109182026.f8IKQfhp003471@pif.b5.mephi.ru> (raw)
In-Reply-To: <67784896561.20010918235827@e-foto.ru>

18 Сентябрь 2001 23:58, Вы написали:
> Кто-нибудь знает как сабж стартует. Никак не могу добавить ключ -i
> при старте.
> при инициализации системы стартует скрипт pg_ctl.
> В нем демону postmaster в качестве параметров передается файл
> /var/lib/pgsql/data/postmaster.opts
> Все параметры запуска по идее должны быть в этом файле. В общем они
> там и есть. Я пытаюсь туда записать строку -i. Потом стартую демона.
> Все запускается, но в postmaster.opts уже нет строки -i.
> В результате отсутствует доступ по TCP/IP.
>
> А вообще странно все как то. Во всех доках описаны совсем другие
> каталоги для PostgreSQL. Зачем было все менять и делать по своему не
> понятно.
В файле /var/lib/pgsql/data/postmaster.opts лежат те ключи, с которым 
запускался postmaster. Для добавления "-i" в файле 
/etc/rc.d/init.d/postgresql в строках
if [ $PG_CHROOT_DIR ];
 then
  daemon /usr/bin/postmaster -D $PGDATA -r $PG_CHROOT_DIR -i -S
 else
  daemon --user postgres /usr/bin/postmaster -D $PGDATA -S -i
 fi

добавить "-i", как приведено выше

-- 
С уважением, Епифанов Сергей.



  reply	other threads:[~2001-09-19  0:16 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-09-18 23:49 Maxim
2001-09-19  0:16 ` Sergei [this message]
2001-09-19 11:05   ` Maxim
2001-09-19 11:52     ` Kostya Timoshenko
2001-09-19 12:09       ` Kostya Timoshenko
2001-09-19 15:53       ` [mdk-re] Starting PostgeSQL whith -i options >> Answer Maxim

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200109182026.f8IKQfhp003471@pif.b5.mephi.ru \
    --to=serpiph@pochtamt.ru \
    --cc=mandrake-russian@altlinux.ru \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

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