[oe-commits] Jackie Huang : rsyslog: don't call init script in logrotate conf file
git at git.openembedded.org
git at git.openembedded.org
Wed Feb 4 16:11:52 UTC 2015
Module: meta-openembedded.git
Branch: master-next
Commit: 3e0a0662eabed52aaee8318b26a470cf717866e8
URL: http://git.openembedded.org/?p=meta-openembedded.git&a=commit;h=3e0a0662eabed52aaee8318b26a470cf717866e8
Author: Jackie Huang <jackie.huang at windriver.com>
Date: Thu Jan 29 15:46:14 2015 +0800
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 at windriver.com>
Signed-off-by: Martin Jansa <Martin.Jansa at gmail.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
}
More information about the Openembedded-commits
mailing list