Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4aabf9ebb2 | ||
|
|
532034e56e |
37
CONFIG/etc/logrotate.d/rsyslog
Normal file
37
CONFIG/etc/logrotate.d/rsyslog
Normal file
@@ -0,0 +1,37 @@
|
|||||||
|
/var/log/syslog
|
||||||
|
{
|
||||||
|
rotate 7
|
||||||
|
daily
|
||||||
|
missingok
|
||||||
|
notifempty
|
||||||
|
delaycompress
|
||||||
|
compress
|
||||||
|
postrotate
|
||||||
|
invoke-rc.d rsyslog rotate > /dev/null
|
||||||
|
endscript
|
||||||
|
}
|
||||||
|
|
||||||
|
/var/log/mail.info
|
||||||
|
/var/log/mail.warn
|
||||||
|
/var/log/mail.err
|
||||||
|
/var/log/mail.log
|
||||||
|
/var/log/daemon.log
|
||||||
|
/var/log/kern.log
|
||||||
|
/var/log/auth.log
|
||||||
|
/var/log/user.log
|
||||||
|
/var/log/lpr.log
|
||||||
|
/var/log/cron.log
|
||||||
|
/var/log/debug
|
||||||
|
/var/log/messages
|
||||||
|
{
|
||||||
|
rotate 4
|
||||||
|
weekly
|
||||||
|
missingok
|
||||||
|
notifempty
|
||||||
|
compress
|
||||||
|
delaycompress
|
||||||
|
sharedscripts
|
||||||
|
postrotate
|
||||||
|
invoke-rc.d rsyslog rotate > /dev/null
|
||||||
|
endscript
|
||||||
|
}
|
||||||
8
Makefile
8
Makefile
@@ -62,14 +62,14 @@
|
|||||||
# of the package.
|
# of the package.
|
||||||
|
|
||||||
ARCH = x86_64
|
ARCH = x86_64
|
||||||
DEPENDS = e2fsprogs,glibc,gmp,krb5,libgnutls,libnettle,zlib
|
DEPENDS = e2fsprogs,glibc,gmp,krb5,libgnutls,libnettle,logrotate,zlib
|
||||||
BUILDDEPS =
|
BUILDDEPS =
|
||||||
SRCPKG =
|
SRCPKG =
|
||||||
URL = https://www.rsyslog.com/
|
URL = https://www.rsyslog.com/
|
||||||
REPO = main
|
REPO = main
|
||||||
BRIEF = RSYSLOG is the rocket-fast system for log processing
|
BRIEF = RSYSLOG is the rocket-fast system for log processing
|
||||||
DESC = RSYSLOG is the rocket-fast system for log processing
|
DESC = RSYSLOG is the rocket-fast system for log processing
|
||||||
SNAPVER = 0
|
SNAPVER = 2
|
||||||
|
|
||||||
ARCHIVE := $(PWD)/SRC/$(shell ls SRC|egrep '(bz2|gz|tar|xz)$$'|tail -1)
|
ARCHIVE := $(PWD)/SRC/$(shell ls SRC|egrep '(bz2|gz|tar|xz)$$'|tail -1)
|
||||||
TYPE := $(shell file -ib $(ARCHIVE)|cut -d';' -f1|tr -d '\n')
|
TYPE := $(shell file -ib $(ARCHIVE)|cut -d';' -f1|tr -d '\n')
|
||||||
@@ -129,10 +129,7 @@ $(ROOT): $(SRCDIR)/tools/rsyslogd
|
|||||||
@cd $(SRCDIR) && make install DESTDIR=$(ROOT) && \
|
@cd $(SRCDIR) && make install DESTDIR=$(ROOT) && \
|
||||||
install -v -d -m 0755 $(ROOT)/etc/init.d && \
|
install -v -d -m 0755 $(ROOT)/etc/init.d && \
|
||||||
install -v -d -m 0755 $(ROOT)/etc/rsyslog.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 -d -m 0755 $(ROOT)/var/spool/rsyslog && \
|
||||||
install -v -m 0644 $(SNAPDIR)/rsyslog.conf \
|
|
||||||
$(ROOT)/usr/share/$(PACKAGE)/rsyslog.conf && \
|
|
||||||
install -v -m 0755 $(SNAPDIR)/rsyslog.init \
|
install -v -m 0755 $(SNAPDIR)/rsyslog.init \
|
||||||
$(ROOT)/etc/init.d/rsyslog
|
$(ROOT)/etc/init.d/rsyslog
|
||||||
|
|
||||||
@@ -145,5 +142,6 @@ clean:
|
|||||||
$(SNAPINFO) \
|
$(SNAPINFO) \
|
||||||
$(MANIFEST) \
|
$(MANIFEST) \
|
||||||
$(FILES) \
|
$(FILES) \
|
||||||
|
$(CONFIG) \
|
||||||
$(SRCDIR)
|
$(SRCDIR)
|
||||||
|
|
||||||
|
|||||||
@@ -39,7 +39,7 @@ case "$1" in
|
|||||||
;;
|
;;
|
||||||
|
|
||||||
status)
|
status)
|
||||||
status_of_proc -p "$PIDFILE" "$DAEMON"
|
status_of_proc -p "$PIDFILE" "$DAEMON" || exit 1
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
echo "Usage: $0 [start|stop|reload|restart|status]"
|
echo "Usage: $0 [start|stop|reload|restart|status]"
|
||||||
|
|||||||
@@ -7,10 +7,6 @@ case $1 in
|
|||||||
exit 0
|
exit 0
|
||||||
;;
|
;;
|
||||||
postinst)
|
postinst)
|
||||||
if [ ! -f /etc/rsyslog.conf ]; then
|
|
||||||
cp /usr/share/rsyslog/rsyslog.conf /etc/rsyslog.conf
|
|
||||||
fi
|
|
||||||
|
|
||||||
/etc/init.d/rsyslog status 2>&1 > /dev/null && /etc/init.d/rsyslog restart
|
/etc/init.d/rsyslog status 2>&1 > /dev/null && /etc/init.d/rsyslog restart
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
|
|||||||
Reference in New Issue
Block a user