diff --git a/SNAP/rsyslog.logrotate b/CONFIG/etc/logrotate.d/rsyslog similarity index 100% rename from SNAP/rsyslog.logrotate rename to CONFIG/etc/logrotate.d/rsyslog diff --git a/SNAP/rsyslog.conf b/CONFIG/etc/rsyslog.conf similarity index 100% rename from SNAP/rsyslog.conf rename to CONFIG/etc/rsyslog.conf diff --git a/Makefile b/Makefile index 7ad54f1..fa5f354 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 = 1 +SNAPVER = 2 ARCHIVE := $(PWD)/SRC/$(shell ls SRC|egrep '(bz2|gz|tar|xz)$$'|tail -1) TYPE := $(shell file -ib $(ARCHIVE)|cut -d';' -f1|tr -d '\n') @@ -129,12 +129,7 @@ $(ROOT): $(SRCDIR)/tools/rsyslogd @cd $(SRCDIR) && make install DESTDIR=$(ROOT) && \ install -v -d -m 0755 $(ROOT)/etc/init.d && \ install -v -d -m 0755 $(ROOT)/etc/rsyslog.d && \ - install -v -d -m 0755 $(ROOT)/usr/share/$(PACKAGE) && \ install -v -d -m 0755 $(ROOT)/var/spool/rsyslog && \ - install -v -m 0644 $(SNAPDIR)/rsyslog.conf \ - $(ROOT)/usr/share/$(PACKAGE)/rsyslog.conf && \ - install -v -m 0644 $(SNAPDIR)/rsyslog.logrotate \ - $(ROOT)/usr/share/$(PACKAGE)/rsyslog.logrotate && \ install -v -m 0755 $(SNAPDIR)/rsyslog.init \ $(ROOT)/etc/init.d/rsyslog @@ -147,5 +142,6 @@ clean: $(SNAPINFO) \ $(MANIFEST) \ $(FILES) \ + $(CONFIG) \ $(SRCDIR) diff --git a/SNAP/rsyslog.init b/SNAP/rsyslog.init index c6f91ab..89f93ec 100644 --- a/SNAP/rsyslog.init +++ b/SNAP/rsyslog.init @@ -39,7 +39,7 @@ case "$1" in ;; status) - status_of_proc -p "$PIDFILE" "$DAEMON" + status_of_proc -p "$PIDFILE" "$DAEMON" || exit 1 ;; *) echo "Usage: $0 [start|stop|reload|restart|status]" diff --git a/SNAP/usher b/SNAP/usher index 6655cee..0d6c2b3 100755 --- a/SNAP/usher +++ b/SNAP/usher @@ -7,14 +7,6 @@ case $1 in exit 0 ;; postinst) - if [ ! -f /etc/rsyslog.conf ]; then - cp /usr/share/rsyslog/rsyslog.conf /etc/rsyslog.conf - fi - - if [ ! -f /etc/logrotate.d/rsyslog ]; then - cp /usr/share/rsyslog/rsyslog.logrotate /etc/logrotate.d/rsyslog - fi - /etc/init.d/rsyslog status 2>&1 > /dev/null && /etc/init.d/rsyslog restart exit 0