mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-06-05 02:50:46 +00:00
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>
This commit is contained in:
committed by
Martin Jansa
parent
5db5c07c0d
commit
511baab441
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user