aboutsummaryrefslogtreecommitdiff
path: root/admin
diff options
context:
space:
mode:
authorPhilip Prindeville <philipp@redfish-solutions.com>2020-05-05 15:00:50 -0600
committerPhilip Prindeville <philipp@redfish-solutions.com>2020-05-06 10:38:43 -0600
commitc27f4ca53b231823d4298ab976d0a64ed61dfa99 (patch)
treef166ac5ca4121c85dd8f86050a6dddc5f6bd98cf /admin
parent07998f702e1e9bf125145db6e73dd825f18898a5 (diff)
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 <philipp@redfish-solutions.com>
Diffstat (limited to 'admin')
-rw-r--r--admin/syslog-ng/Makefile2
-rw-r--r--admin/syslog-ng/files/syslog-ng.init4
2 files changed, 5 insertions, 1 deletions
diff --git a/admin/syslog-ng/Makefile b/admin/syslog-ng/Makefile
index b47151e46..50540d54e 100644
--- a/admin/syslog-ng/Makefile
+++ b/admin/syslog-ng/Makefile
@@ -2,7 +2,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=syslog-ng
PKG_VERSION:=3.26.1
-PKG_RELEASE:=1
+PKG_RELEASE:=2
PKG_MAINTAINER:=Josef Schlehofer <josef.schlehofer@nic.cz>
PKG_LICENSE:=LGPL-2.1-or-later GPL-2.0-or-later
diff --git a/admin/syslog-ng/files/syslog-ng.init b/admin/syslog-ng/files/syslog-ng.init
index b68c6574f..5ca2d2aa7 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
+}