sysklogd: add cron,kernel and debug log target, improve syslog.conf

This commit is contained in:
Juergen Daubert 2010-06-03 10:44:52 +00:00
parent 21c131ed1a
commit 2eae3dc64e
5 changed files with 18 additions and 10 deletions

View File

@ -20,5 +20,8 @@ drwxr-xr-x root/root usr/sbin/
drwxr-xr-x root/root var/
drwxr-xr-x root/root var/log/
-rw-r----- root/root var/log/auth (EMPTY)
-rw-r----- root/root var/log/cron (EMPTY)
-rw-r----- root/root var/log/debug (EMPTY)
-rw-r----- root/root var/log/kernel (EMPTY)
-rw-r----- root/root var/log/mail (EMPTY)
-rw-r----- root/root var/log/messages (EMPTY)

View File

@ -1,5 +1,5 @@
b379693c8b89c99994e58efd49f98a71 rotatelog
a1bb71ed6b0ce791cb7f9fa0089a09ef sysklogd
e053094e8103165f98ddafe828f6ae4b sysklogd-1.5.tar.gz
bf5c13b44ab9fa15cda9bfa9df9b584e syslog
022ca2758664748ae096d57eac9ac555 syslog.conf
844e5e75944beb8cf4f39a0535e56ba4 syslog
f8d478b8d60c1d3879f4a10a955db6e5 syslog.conf

View File

@ -4,7 +4,7 @@
name=sysklogd
version=1.5
release=3
release=4
source=(http://www.ibiblio.org/pub/Linux/system/daemons/$name-$version.tar.gz \
rotatelog syslog syslog.conf sysklogd)
@ -28,6 +28,6 @@ build() {
install -m 755 $SRC/sysklogd $PKG/etc/rc.d
chmod -R +w $PKG
touch $PKG/var/log/{messages,auth,mail}
chmod 640 $PKG/var/log/{messages,auth,mail}
touch $PKG/var/log/{messages,auth,mail,cron,kernel,debug}
chmod 640 $PKG/var/log/{messages,auth,mail,cron,kernel,debug}
}

View File

@ -3,8 +3,10 @@
# /etc/cron/weekly/syslog: rotate log files
#
/usr/sbin/rotatelog cron
/usr/sbin/rotatelog auth
/usr/sbin/rotatelog cron
/usr/sbin/rotatelog debug
/usr/sbin/rotatelog kernel
/usr/sbin/rotatelog mail
/usr/sbin/rotatelog messages

View File

@ -2,9 +2,12 @@
# /etc/syslog.conf
#
*.emerg *
authpriv.*;auth.* /var/log/auth
mail.* -/var/log/mail
*.info;authpriv,auth,mail.none /var/log/messages
*.emerg *
kern.* /var/log/kernel
authpriv,auth.info /var/log/auth
mail.info /var/log/mail
cron.info /var/log/cron
*.info;authpriv,auth,mail,cron,kern.none /var/log/messages
*.=debug;kern.none /var/log/debug
# End of file