summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-extended/rsyslog
diff options
context:
space:
mode:
authorJackie Huang <jackie.huang@windriver.com>2015-01-29 15:46:14 +0800
committerMartin Jansa <Martin.Jansa@gmail.com>2015-02-12 19:33:25 +0100
commit511baab441418086aa919251c7e9d3685bc30618 (patch)
tree7545ff0d682233f5cbb4647c61c4281504248556 /meta-oe/recipes-extended/rsyslog
parent5db5c07c0d81a5665275609b3961ba3929871236 (diff)
downloadmeta-openembedded-511baab441418086aa919251c7e9d3685bc30618.tar.gz
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 <jackie.huang@windriver.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'meta-oe/recipes-extended/rsyslog')
-rw-r--r--meta-oe/recipes-extended/rsyslog/rsyslog/rsyslog.logrotate4
1 files 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 ba1120af4..94ec517b2 100644
--- a/meta-oe/recipes-extended/rsyslog/rsyslog/rsyslog.logrotate
+++ b/meta-oe/recipes-extended/rsyslog/rsyslog/rsyslog.logrotate
@@ -9,7 +9,7 @@
9 delaycompress 9 delaycompress
10 compress 10 compress
11 postrotate 11 postrotate
12 /etc/init.d/rsyslog reload 2> /dev/null || true 12 /bin/kill -HUP `cat /var/run/rsyslogd.pid 2> /dev/null` 2> /dev/null || true
13 endscript 13 endscript
14} 14}
15 15
@@ -34,6 +34,6 @@
34 delaycompress 34 delaycompress
35 sharedscripts 35 sharedscripts
36 postrotate 36 postrotate
37 /etc/init.d/rsyslog reload 2> /dev/null || true 37 /bin/kill -HUP `cat /var/run/rsyslogd.pid 2> /dev/null` 2> /dev/null || true
38 endscript 38 endscript
39} 39}