Add restorecon incase the log file gets deleted and recreated.

This commit is contained in:
Daniel J Walsh 2004-12-02 20:48:54 +00:00 committed by Michal Schorm
parent d317acda8a
commit e5953bdf85
2 changed files with 5 additions and 1 deletions

View File

@ -24,6 +24,7 @@ start(){
touch /var/log/mysqld.log
chown mysql:mysql /var/log/mysqld.log
chmod 0640 /var/log/mysqld.log
[ -x /sbin/restorecon ] && /sbin/restorecon /var/log/mysqld.log
if [ ! -d $datadir/mysql ] ; then
action $"Initializing MySQL database: " /usr/bin/mysql_install_db
ret=$?

View File

@ -1,6 +1,6 @@
Name: mysql
Version: 4.1.7
Release: 4
Release: 5
Source0: http://dev.mysql.com/get/Downloads/MySQL-4.1/mysql-%{version}.tar.gz
Source1: mysql.init
Source2: mysql.logrotate
@ -351,6 +351,9 @@ fi
%{_datadir}/sql-bench
%changelog
* Thu Dec 2 2004 Tom Lane <tgl@redhat.com> 4.1.7-5
- Add a restorecon to keep the mysql.log file in the right context
* Tue Nov 23 2004 Tom Lane <tgl@redhat.com> 4.1.7-4
- Turn off old_passwords in default /etc/my.cnf file, for better compatibility
with mysql 3.x clients (per suggestion from Joe Orton).