Mysql logrotation

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I woke up this morning to emails and phone calls. I didn't change
anything dealing with the mysql server over the weekend, but it wasn't
running this morning.There shouldn't be a reason why this process
would go down and stay down.

Here is the mysql file in logrotate.d.. Why is it trying to kill the
process before and after rotation? Shouldn't this file be trying to
restart the process after the rotation?



/var/log/mysqld.log {
    missingok
    create 0640 mysql mysql
    prerotate
        [ -e /var/lock/subsys/mysqld ] && /bin/kill -HUP `cat
/var/run/mysqld/mysqld.pid  2> /dev/null ` || /bin/true
    endscript
    postrotate
        [ -e /var/lock/subsys/mysqld ] && /bin/kill -HUP `cat
/var/run/mysqld/mysqld.pid  2> /dev/null ` || /bin/true
    endscript
}

Jake McHenry
Nittany Travel MIS Coordinator
http://www.nittanytravel.com


-- 
Shrike-list mailing list
Shrike-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/shrike-list

[Index of Archives]     [Fedora Users]     [Centos Users]     [Kernel Development]     [Red Hat Install]     [Red Hat Watch]     [Red Hat Development]     [Red Hat Phoebe Beta]     [Yosemite Forum]     [Fedora Discussion]     [Gimp]     [Stuff]     [Yosemite News]

  Powered by Linux