ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: "Nikolay A. Fetisov" <naf@altlinux.ru>
To: devel@lists.altlinux.org
Subject: Re: [devel] I: apache2, принципы конфигурирования
Date: Thu, 29 Mar 2007 18:03:03 +0400
Message-ID: <20070329180303.66d87072@naf177.naf.net.ru> (raw)
In-Reply-To: <460BB03C.4060005@solin.spb.ru>

[-- Attachment #1: Type: text/plain, Size: 1502 bytes --]

On Thu, 29 Mar 2007 16:25:32 +0400
Aleksey Avdeev wrote:

> Vladimir V. Kamarzin пишет:
> ...
> > Хотелось бы уточнить, каким именно образом следует производить
> > включение/выключение того или иного модуля при установке/удалении какого-нибо
> > пакета? Т.е. из %post{un} скриптов.
> > 
> 
>   Строчкой вида "<модуль>=yes" в файле
> conf/mods-start.d/<приоритет>-<имя аддона>.conf, и вызов
> /usr/sbin/a2chkconfig из %post{un} скриптов.
> ...

Т.е.: в пакеты с модулями для Apache2 следует класть файлы:
- %a_mods_available/MODULE.conf  c LoadModule,
- опционально %a_mods_available/MODULE.load с конфигурацией,
- %a_mods_start/YYY-MODULE.conf , в простейшем случае со строкой
  'MODULE=yes'

Секции %post/%postun должны содержать вызов:
%a_sbindir/a2chkconfig
- и всё.

Собственно перезапуск Apache после установки/обновления/удаления пакета,
с обновлённой конфигурацией, оставляется на усмотрение пользователя.
Так?


Что-то в таком подходе видятся потенциальные грабли. Поскольку можно и
не догадаться/вспомнить после обновления перезапустить руками Apache, а
конфигурация сервера может быть длинной, лежать в многих файлах и с
директивами, отнюдь не везде (а обычно - почти нигде) не
экранированными <IfModule> </IfModule>. А через полдня-день-неделю
сходу связать упавший и отказавшийся запускаться Apache с удалённым или
установленным модулем может и не получиться.
Может, лучше сразу перезапускать, в %post/%postun ?

-- 
С уважением,	
Николай Фетисов

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

  reply	other threads:[~2007-03-29 14:03 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-03-28 13:47 Aleksey Avdeev
2007-03-29  5:19 ` Vladimir V. Kamarzin
2007-03-29 12:25   ` Aleksey Avdeev
2007-03-29 14:03     ` Nikolay A. Fetisov [this message]
2007-03-29 14:33       ` Nikolay A. Fetisov
2007-03-29 20:04       ` Aleksey Avdeev
2007-03-30  4:05       ` Nikolay A. Fetisov
2007-03-30  6:50         ` Aleksey Avdeev
2007-03-30 21:29           ` Artem Zolochevskiy
2007-03-30 21:56             ` Dmitry V. Levin
2007-03-30 22:06               ` Artem Zolochevskiy
2007-04-02  8:55                 ` Aleksey Avdeev

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=20070329180303.66d87072@naf177.naf.net.ru \
    --to=naf@altlinux.ru \
    --cc=devel@lists.altlinux.org \
    /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 Team development discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/devel/0 devel/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 devel devel/ http://lore.altlinux.org/devel \
		devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
	public-inbox-index devel

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


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