Rsyslog : Don't need to delete log files to create directories.

This commit is contained in:
Jeremy Gardais 2017-09-05 17:07:18 +02:00
parent 0d73ba8b9d
commit fc15f8ff95
2 changed files with 0 additions and 10 deletions

Binary file not shown.

View File

@ -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