Comment 0 for bug 893352

Revision history for this message
Devin Vance (devin-p) wrote :

Due to ubuntu putting /var/run on a tempory fs the /var/run/mysqld directory is removed upon a reboot. Mysql will fail to start via the crm after next boot as it cannot access or find the the needed /var/run/mysqld directory.
This directory is created in the OCF script in the mysql_start() function , but for some reason not until after the script checks for the directory and write permissions, logs an error, and exits. (Line 345)

I have fixed it by merely moving the if statement which test -w the pid_dir to after the if statements which create the pid_dir (line 350)