Mariadb fail to start after update

This has happend twise now in a year and isnt any good..

- they had change the location of mysql.sock and I solved it by doing a link from the new place to the old.

ln -s /run/mysqld/mysql.sock /var/lib/mysql/mysql.sock

- they missed to set right owner of /var/run/mysqld and I did just change it to right owner.

chown -Rf mysql:mysql /var/run/mysqld

- - - - - - - - - - - - - - - - - - -
It's happen again that maridb died and this time this solved it.
As the log files had been corrupted Innodb couldn't start...

/etc/init.d/mysql stop
mv /var/lib/mysql/ib_logfile0 /var/lib/mysql/ib_logfile0.bak
mv /var/lib/mysql/ib_logfile1 /var/lib/mysql/ib_logfile1.bak

/etc/init.d/mysql start