ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: Serhii Hlodin <hlodin@altlinux.ru>
To: ALT Linux Team development discussions <devel@lists.altlinux.org>
Subject: Re: [devel] repocop report of 2008-04-16
Date: Thu, 17 Apr 2008 13:11:36 +0300
Message-ID: <200804171311.37573.hlodin@altlinux.ru> (raw)
In-Reply-To: <20080417093556.GA742@mw.office.seiros.ru>

четвер, 17-кві-2008, Денис Смирнов написав:
> On Thu, Apr 17, 2008 at 12:13:06PM +0300, Serhii Hlodin wrote:
>
> SH> syslog отключился -- не идут логи, syslog включился -- логи опять
> пошли. Или я SH> не прав?
>
> У нас это не используется для service <name> stop. Только для
> приоретизации порядка остановки сервисов.
>
> А сервис syslogd должен останавливаться _после_ постгреса.

Еще раз перечитав LSB думаю, что для постгреса должна быть такая конструкция:

# Requires-Start: $local_fs $remote_fs $network $syslog
# Requires-Stop: $local_fs $remote_fs $network
# Should-Stop: $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6

Should-Start/Should-Stop реализуют слабые зависимости. Т.е., отсутствие 
доступности данного сервиса не влияет на запуск/останов текущего, но при 
запуске прогреса необходимо проверить доступность syslog-а и, при 
необходимости, запустить его.

Если прогрес может работать без сети и по умолчанию так и сконфигурирован, то 
конструкция должна выглядеть следующим образом:

# Requires-Start: $local_fs $syslog
# Requires-Stop: $local_fs
# Should-Stop: $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6

Думаю, что "разбор полетов" на примере постгреса поможет нам всем.

-- 
С уважением,
               С.В. Глодин



  reply	other threads:[~2008-04-17 10:11 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-04-16 13:51 Igor Vlasenko
2008-04-16 13:57 ` Андрей Черепанов
2008-04-16 14:03   ` Serhii Hlodin
2008-04-16 14:06   ` Victor Forsyuk
2008-04-16 14:15   ` Igor Vlasenko
2008-04-16 14:44 ` Grigory Batalov
2008-04-16 14:58   ` Igor Vlasenko
2008-04-16 15:46     ` Michael Bochkaryov
2008-04-17  6:49       ` Serhii Hlodin
2008-04-17  7:08         ` Mikhail Gusarov
2008-04-17  7:14           ` Serhii Hlodin
2008-04-17  9:13             ` Serhii Hlodin
2008-04-17  9:35               ` Денис Смирнов
2008-04-17 10:11                 ` Serhii Hlodin [this message]
2008-04-19 15:39                   ` Денис Смирнов
2008-04-21  6:57                     ` Serhii Hlodin

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=200804171311.37573.hlodin@altlinux.ru \
    --to=hlodin@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