ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: Michael Shigorin <mike@osdn.org.ua>
To: devel@lists.altlinux.org
Subject: Re: [devel] systemd + logrotate + syslogd
Date: Sat, 17 Nov 2012 12:55:23 +0200
Message-ID: <20121117105523.GK19661@osdn.org.ua> (raw)
In-Reply-To: <19020562.58.1353126507447.JavaMail.javamailuser@localhost>

On Sat, Nov 17, 2012 at 01:28:29PM +0900, Alexei Takaseev wrote:
> +if ! cat /proc/1/cmdline | fgrep --binary-files=text \/bin\/systemd; then

Тогда уж во избежание useless use of cat(1):

+if ! fgrep --binary-files=text \/bin\/systemd /proc/1/cmdline; then

(по существу задачи пришло в голову разве что перетащить
на SIGHUP, но это возврат в прошлый век, дублирование
функциональности инитскриптов и конкретно с rsyslogd
может не дать желаемого результата, у него "слабый"
reload по HUP)

-- 
 ---- WBR, Michael Shigorin <mike@altlinux.ru>
  ------ Linux.Kiev http://www.linux.kiev.ua/


  parent reply	other threads:[~2012-11-17 10:55 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-11-17  4:28 ` Alexei Takaseev
2012-11-17 10:37   ` Dmitry V. Levin
2012-11-20  8:33     ` Mike
2012-11-20  9:23       ` Dmitry V. Levin
2012-11-17 10:55   ` Michael Shigorin [this message]
2012-11-19  6:01   ` Sergei Epiphanov
2012-11-19 11:04     ` Dmitry V. Levin
2012-11-19 11:13       ` Alexei Takaseev
2012-11-19 11:35       ` Sergei Epiphanov
2012-11-20  8:30     ` Mike
2012-11-20  9:40       ` Sergei Epiphanov

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=20121117105523.GK19661@osdn.org.ua \
    --to=mike@osdn.org.ua \
    --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