From: Maxim <max_conf@e-foto.ru>
To: Kostya Timoshenko <mandrake-russian@altlinux.ru>
Subject: [mdk-re] Starting PostgeSQL whith -i options >> Answer
Date: Wed Sep 19 15:53:01 2001
Message-ID: <1734322535.20010919160207@e-foto.ru> (raw)
In-Reply-To: <20010919135653.4496667e.kt@altlinux.ru>
Здравствуйте, Kostya.
Вы писали 19 сентября 2001 г., 11:56:53:
KT> On Wed, 19 Sep 2001 11:14:07 +0400
KT> Maxim <max_conf@e-foto.ru> wrote:
>> Здравствуйте, Sergei.
>> Вы писали 19 сентября 2001 г., 0:26:40:
>>
>> S> 18 Сентябрь 2001 23:58, Вы написали:
>> >> Кто-нибудь знает как сабж стартует. Никак не могу добавить ключ -i
>> >> при старте.
>> >> при инициализации системы стартует скрипт pg_ctl.
>> >> В нем демону postmaster в качестве параметров передается файл
>> >> /var/lib/pgsql/data/postmaster.opts
>> >> Все параметры запуска по идее должны быть в этом файле. В общем они
>> >> там и есть. Я пытаюсь туда записать строку -i. Потом стартую демона.
>> >> Все запускается, но в postmaster.opts уже нет строки -i.
>> >> В результате отсутствует доступ по TCP/IP.
>> >>
>> >> А вообще странно все как то. Во всех доках описаны совсем другие
>> >> каталоги для PostgreSQL. Зачем было все менять и делать по своему не
>> >> понятно.
>> S> В файле /var/lib/pgsql/data/postmaster.opts лежат те ключи, с которым
>> S> запускался postmaster. Для добавления "-i" в файле
>> S> /etc/rc.d/init.d/postgresql в строках
>> S> if [ $PG_CHROOT_DIR ];
>> S> then
>> S> daemon /usr/bin/postmaster -D $PGDATA -r $PG_CHROOT_DIR -i -S
>> S> else
>> S> daemon --user postgres /usr/bin/postmaster -D $PGDATA -S -i
>> S> fi
>>
>> S> добавить "-i", как приведено выше
>>
>> Я же написал, стартует файл pg_ctl а не postmaster. И из него уже стартуется
>> postmaster. Которому передается в качестве параметра файл postmaster.opts.
>> Все бы отлично, но почему этот файл не меняется. Такое ощущении что он перед
>> передачей postmaster восстанавливается из какой то резервной копии. Все что я в
>> него заношу постоянно теряется. Кстати и в процессах почему то не видно с какими
>> ключами запущен postmaster.
>> При ручном запуске вроде все работает. Но это неудобно.
KT> а так не пойдет pg_ctl -o "-i" start или установкой tcpip_socket=true в
KT> файле /var/lib/pgsql/data/postgresql.conf ?
Все решилось!!
Если кому надо на будущее:
Параметры указываются в файле postmaster.opts.default, но не в каждой строке
параметр, а все одной строкой.
--
С уважением,
Maxim mailto:max_conf@e-foto.ru
prev parent reply other threads:[~2001-09-19 15:53 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-09-18 23:49 [mdk-re] Starting PostgeSQL whith -i options Maxim
2001-09-19 0:16 ` Sergei
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 ` Maxim [this message]
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=1734322535.20010919160207@e-foto.ru \
--to=max_conf@e-foto.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