From: Philip Prindeville Date: Tue, 5 May 2020 21:00:50 +0000 (-0600) Subject: syslog-ng: restore service "reload" to actually working X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=64ebad3fd977aaf7b76296b36873870554c8f408;p=feed%2Fpackages.git syslog-ng: restore service "reload" to actually working Commit 44a16ca broke syslog-ng such that it no longer works with logrotate, for example. Yes, you can manually stop and start the service, but (1) you shouldn't have to and (2) it creates a window where you potentially lose messages if the syslog UDP socket overruns. Signed-off-by: Philip Prindeville (cherry picked from commit c27f4ca53b231823d4298ab976d0a64ed61dfa99) --- diff --git a/admin/syslog-ng/files/syslog-ng.init b/admin/syslog-ng/files/syslog-ng.init index b68c6574f5..5ca2d2aa7f 100644 --- a/admin/syslog-ng/files/syslog-ng.init +++ b/admin/syslog-ng/files/syslog-ng.init @@ -11,3 +11,7 @@ start_service() { procd_set_param command /usr/sbin/syslog-ng --foreground procd_close_instance } + +reload_service() { + /usr/sbin/syslog-ng-ctl reload +}