Rsyslog : Don't need to delete log files to create directories.
This commit is contained in:
parent
0d73ba8b9d
commit
fc15f8ff95
Binary file not shown.
|
@ -22,16 +22,6 @@ if [ -f "${RSYSLOGD_FILE}" ]; then
|
|||
fi
|
||||
cp "${RSYSLOGD_SYSLOG_CONF}" "${RSYSLOGD_SYSLOG_FILE}"
|
||||
|
||||
# Remove old log files
|
||||
## Kernel log files
|
||||
rm -f /var/log/kern.log
|
||||
## Authentication log files
|
||||
rm -f /var/log/user.log /var/log/auth.log
|
||||
## Mail log files
|
||||
rm -f /var/log/mail.err /var/log/mail.info /var/log/mail.log /var/log/mail.warn
|
||||
## System log files
|
||||
rm -f /var/log/daemon.log /var/log/syslog /var/log/messages
|
||||
|
||||
# Restart Rsyslog service
|
||||
/etc/init.d/rsyslog restart
|
||||
|
||||
|
|
Loading…
Reference in New Issue