From: Jack Mitchell <ml@communistcode.co.uk>
To: openembedded-devel@lists.openembedded.org
Subject: Re: [meta-oe][PATCH] rsyslog: don't call init script in logrotate conf file
Date: Thu, 29 Jan 2015 10:12:29 +0000 [thread overview]
Message-ID: <54CA078D.5070702@communistcode.co.uk> (raw)
In-Reply-To: <1422517574-31477-1-git-send-email-jackie.huang@windriver.com>
On 29/01/15 07:46, jackie.huang@windriver.com wrote:
> From: Jackie Huang <jackie.huang@windriver.com>
>
> Send HUP signal instead of calling the reload command
> of init script in logrotate configure file, so that it
> also works when the init system is systemd.
>
> Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
> ---
> meta-oe/recipes-extended/rsyslog/rsyslog/rsyslog.logrotate | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/meta-oe/recipes-extended/rsyslog/rsyslog/rsyslog.logrotate b/meta-oe/recipes-extended/rsyslog/rsyslog/rsyslog.logrotate
> index ba1120a..94ec517 100644
> --- a/meta-oe/recipes-extended/rsyslog/rsyslog/rsyslog.logrotate
> +++ b/meta-oe/recipes-extended/rsyslog/rsyslog/rsyslog.logrotate
> @@ -9,7 +9,7 @@
> delaycompress
> compress
> postrotate
> - /etc/init.d/rsyslog reload 2> /dev/null || true
> + /bin/kill -HUP `cat /var/run/rsyslogd.pid 2> /dev/null` 2> /dev/null || true
> endscript
> }
>
> @@ -34,6 +34,6 @@
> delaycompress
> sharedscripts
> postrotate
> - /etc/init.d/rsyslog reload 2> /dev/null || true
> + /bin/kill -HUP `cat /var/run/rsyslogd.pid 2> /dev/null` 2> /dev/null || true
> endscript
> }
>
This is better than my approach to fixing this as it works with systemd
also. I would take this patch in favour of my
[PATCH] rsyslog: init file has been renamed, reflect in logrotate conf file
Ack from me.
--
Jack Mitchell (jack@embed.me.uk)
Embedded Systems Engineer
Cambridgeshire, UK
http://www.embed.me.uk
--
prev parent reply other threads:[~2015-01-29 10:12 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-01-29 7:46 [meta-oe][PATCH] rsyslog: don't call init script in logrotate conf file jackie.huang
2015-01-29 10:12 ` Jack Mitchell [this message]
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=54CA078D.5070702@communistcode.co.uk \
--to=ml@communistcode.co.uk \
--cc=openembedded-devel@lists.openembedded.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
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.