From 960542dcbda2537246148f02c8e99baef0798c87 Mon Sep 17 00:00:00 2001 From: Jay Larson Date: Sun, 30 Sep 2018 17:08:58 -0500 Subject: [PATCH] corrected logrotate config for rsyslog to send -HUP after log rotation --- CONFIG/etc/logrotate.d/rsyslog | 4 ++-- Makefile | 2 +- SNAP/rsyslog.init | 1 - 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/CONFIG/etc/logrotate.d/rsyslog b/CONFIG/etc/logrotate.d/rsyslog index d75287c..32d3f53 100644 --- a/CONFIG/etc/logrotate.d/rsyslog +++ b/CONFIG/etc/logrotate.d/rsyslog @@ -7,7 +7,7 @@ delaycompress compress postrotate - invoke-rc.d rsyslog rotate > /dev/null + /etc/init.d/rsyslog reload > /dev/null endscript } @@ -32,6 +32,6 @@ delaycompress sharedscripts postrotate - invoke-rc.d rsyslog rotate > /dev/null + /etc/init.d/rsyslog reload > /dev/null endscript } diff --git a/Makefile b/Makefile index fa5f354..ffd524f 100644 --- a/Makefile +++ b/Makefile @@ -69,7 +69,7 @@ URL = https://www.rsyslog.com/ REPO = main BRIEF = RSYSLOG is the rocket-fast system for log processing DESC = RSYSLOG is the rocket-fast system for log processing -SNAPVER = 2 +SNAPVER = 3 ARCHIVE := $(PWD)/SRC/$(shell ls SRC|egrep '(bz2|gz|tar|xz)$$'|tail -1) TYPE := $(shell file -ib $(ARCHIVE)|cut -d';' -f1|tr -d '\n') diff --git a/SNAP/rsyslog.init b/SNAP/rsyslog.init index 89f93ec..42d7da6 100644 --- a/SNAP/rsyslog.init +++ b/SNAP/rsyslog.init @@ -37,7 +37,6 @@ case "$1" in sleep 1 $0 start ;; - status) status_of_proc -p "$PIDFILE" "$DAEMON" || exit 1 ;;