ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: "Dmitry V. Levin" <ldv@altlinux.org>
To: ALT Devel discussion list <devel@lists.altlinux.org>
Subject: Re: [devel] init scripts policy clarification
Date: Sat, 8 Mar 2008 23:09:53 +0300
Message-ID: <20080308200953.GA4036@wo.int.altlinux.org> (raw)
In-Reply-To: <20080308175716.GA16243@dad.imath.kiev.ua>

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

On Sat, Mar 08, 2008 at 07:57:17PM +0200, Igor Vlasenko wrote:
> хотелось бы прояснить наше полиси по InitScripts.
> на
> http://freesource.info/wiki/AltLinux/Sisyphus/devel/InitScripts
> сказано:
> > скрипты, которые входят в пакеты, которые используют 
> > макросы %post_service и %preun_service, обязаны реализовывать 
> > обработку первого аргумента condrestart и condstop соответственно;
> Эти проверки (на condrestart и condstop) делаются сейчас в
> repocop-unittest-init-condrestart.
> При наличии %{post/preun}_service и отсутствии соответствующего
> cond* выдается fail, и это правильно, так как %{post/preun}_service
> не отработает.

Логично.

> Но что делать, если в скрипте нет вызова %{post/preun}_service
> и одновременно нет целей condrestart и condstop?
> 
> Предупреждать ли (через warn) о желательности condrestart и condstop?

Предупреждать.  Это не must, но should.


-- 
ldv

[-- Attachment #2: Type: application/pgp-signature, Size: 197 bytes --]

  parent reply	other threads:[~2008-03-08 20:09 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-03-08 17:57 Igor Vlasenko
2008-03-08 19:02 ` Igor Vlasenko
2008-03-08 20:09 ` Dmitry V. Levin [this message]
2008-03-08 20:35   ` Igor Vlasenko
2008-03-08 20:48     ` Mikhail Gusarov
2008-03-08 21:26       ` Igor Vlasenko
2008-03-08 22:31         ` Mikhail Gusarov
2008-03-08 23:10         ` Dmitry V. Levin
2008-03-09 19:29 ` Slava Semushin
2008-03-09 20:19   ` Dmitry V. Levin
2008-03-09 20:50     ` Mikhail Gusarov
2008-03-09 20:56       ` Slava Semushin

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=20080308200953.GA4036@wo.int.altlinux.org \
    --to=ldv@altlinux.org \
    --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