I have big problem with mysql+memcached, if mysql crash for few seconds, php/apache continue to work and because I have bad php cms it simple caching bad things because can`t get data from mysql and when mysql again start to work (auto restart with chkserv) I have blank homepage because I have bad cache in memcached!
Now I want to auto reload memcached after mysql restart, is it possible?
in /etc/chkserv.d for mysql I have this:
service[mysql]=x,x,x,/usr/local/cpanel/scripts/restartsrv_mysql;/etc/init.d/memcached reload,mysql,mysql
but this simple don`t working, mysql start to work but memcached not reloaded after it, look like second command "/etc/init.d/memcached reload" not executed because mysql start to work after first command!? Is this true or I have some other problem?
How to reload memcached after mysql start/re-start?
Thanks.
Now I want to auto reload memcached after mysql restart, is it possible?
in /etc/chkserv.d for mysql I have this:
service[mysql]=x,x,x,/usr/local/cpanel/scripts/restartsrv_mysql;/etc/init.d/memcached reload,mysql,mysql
but this simple don`t working, mysql start to work but memcached not reloaded after it, look like second command "/etc/init.d/memcached reload" not executed because mysql start to work after first command!? Is this true or I have some other problem?
How to reload memcached after mysql start/re-start?
Thanks.