From 511baab441418086aa919251c7e9d3685bc30618 Mon Sep 17 00:00:00 2001 From: Jackie Huang Date: Thu, 29 Jan 2015 15:46:14 +0800 Subject: rsyslog: don't call init script in logrotate conf file 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 Signed-off-by: Martin Jansa --- 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 ba1120af44..94ec517b21 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 } -- cgit 1.2.3-korg