syslog-ng: restore service "reload" to actually working
authorPhilip Prindeville <philipp@redfish-solutions.com>
Tue, 5 May 2020 21:00:50 +0000 (15:00 -0600)
committerJosef Schlehofer <pepe.schlehofer@gmail.com>
Wed, 20 May 2020 17:01:56 +0000 (19:01 +0200)
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 <philipp@redfish-solutions.com>
(cherry picked from commit c27f4ca53b231823d4298ab976d0a64ed61dfa99)

admin/syslog-ng/files/syslog-ng.init

index b68c6574f5bf9e6530f5d0623ed9a7ce040b4ff0..5ca2d2aa7f01a5b8c1260133c16581ce0f002d5e 100644 (file)
@@ -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
+}