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] [git update] packages/apache2: heads/master
Date: Mon, 18 Jun 2007 11:31:25 +0400
Message-ID: <20070618073125.GA27885@basalt.office.altlinux.org> (raw)
In-Reply-To: <4674F39A.2060602@solin.spb.ru>

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

On Sun, Jun 17, 2007 at 12:40:58PM +0400, Aleksey Avdeev wrote:
> Aleksey Avdeev пишет:
> > Slava Semushin пишет:
> >> 2007/6/17, Aleksey Avdeev <solo / altlinux.org>:
> >> [...]
> >>> -%_sbindir/a2chkconfig
> >>> +%_sbindir/a2chkconfig 2>&1 >/dev/null
> >> [...]
> >>> -%_sbindir/a2chkconfig
> >>> +%_sbindir/a2chkconfig 2>&1 >/dev/null
> >> [...]
> >>> -%_sbindir/a2chkconfig
> >>> +%_sbindir/a2chkconfig 2>&1 >/dev/null
> >> [...]
> >>> -%_sbindir/a2chkconfig
> >>> +%_sbindir/a2chkconfig 2>&1 >/dev/null
> >> [...]
> >>> -       %_sbindir/a2chkconfig
> >>> +       %_sbindir/a2chkconfig 2>&1 >/dev/null
> >> [...]
> >>
> >> Алексей, вы, наверное, хотели перенаправить вывод stderr и stdout в /dev/null?
> > 
> >   Да.
> > 
> >> В таком случае, если я не ошибаюсь, эта конструкция не будет работать
> >> как вы ожидаете. Тут важно соблюсти порядок. (В данном случае надо
> >>> /dev/null 2>&1)
> >> Вот пример:
> >>
> >> [c0der@rock ~]$ (echo stdout; echo stderr >&2) 2>&1 >/dev/null
> >> stderr
> >> [c0der@rock ~]$ (echo stdout; echo stderr >&2) >/dev/null 2>&1
> >> [c0der@rock ~]$
> > 
> >   Спасибо. Сейчас обновлю...
> 
>   Проверил: %_sbindir/a2chkconfig >/dev/null 2>&1 -- непомогает... :-(
> (Как и %_sbindir/a2chkconfig 2>/dev/null >/dev/null.)

Алексей, конструкция ">/dev/null 2>&1" заведомо рабочая, в то время как
"2>&1 >/dev/null" несёт совсем другой смысл.

Само по себе странно, конечно, что приходится давить весь вывод, но если
вы решили это делать, то лучше это делать правильно.

>   В чём дело я так и не понял: если запускать из консоли -- то все
> варианты работают, даже /usr/sbin/a2chkconfig >/dev/null, в rpm скриптах
> -- неработает.

Похоже, что у ощущение нерабочести произошло от смешения скриптов разных
релизов пакетов apache2-*.

> PS: Текущий вариант сдесь --
> <http://git.altlinux.ru/people/solo/packages/?p=apache2.git;a=commit;h=c3b64bf3914c40185106f9a1e776e475bd8e4690>.

Выкладывайте.


-- 
ldv

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

  parent reply	other threads:[~2007-06-18  7:31 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-06-17  6:56 ` Slava Semushin
2007-06-17  8:06   ` Aleksey Avdeev
2007-06-17  8:40     ` Aleksey Avdeev
2007-06-17  9:42       ` Grigory Batalov
2007-06-17  9:35         ` Aleksey Avdeev
2007-06-18  7:31       ` Dmitry V. Levin [this message]
2007-06-18  9:59         ` Aleksey Avdeev
2007-06-18 10:22           ` Dmitry V. Levin
2007-06-18 10:20             ` Aleksey Avdeev
2007-06-18 12:20           ` [devel] I: apache2-2.2.4-alt29 в Sisyphus и 4.0/branch (was: Re: [git update] packages/apache2: heads/master) 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=20070618073125.GA27885@basalt.office.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