I have vps-hosting with centos. On this server are Apache, PHP, MySql. I installed memcached. And sometimes (once in 3-4 days) memcached stopping - I don't know why, in log file missing necessary information.
I found that solution - every 10 minutes run cron, which verify started or not memcached (through command memcached-tool), when memcached already crashed - i send e-mail and through server command line start memv=cached
But i would start memcached automatic, but i can't do this.
I tried so command
system("/etc/init.d/memcached start");
exec("service memcached start");
system("service memcached start");
but i haven't result.