diff -up e-smith-mysql-2.2.0/root/etc/e-smith/templates/etc/my.cnf/012open_files_limit.too-many-open-files-error e-smith-mysql-2.2.0/root/etc/e-smith/templates/etc/my.cnf/012open_files_limit --- e-smith-mysql-2.2.0/root/etc/e-smith/templates/etc/my.cnf/012open_files_limit.too-many-open-files-error 2011-03-01 20:57:12.000000000 +0100 +++ e-smith-mysql-2.2.0/root/etc/e-smith/templates/etc/my.cnf/012open_files_limit 2011-03-01 21:01:01.000000000 +0100 @@ -0,0 +1,9 @@ +{ + $OUT = ''; + + my $limit = ${'mysqld'}{OpenFilesLimit} || 0; + return if $limit eq 0; + + $OUT .= "open_files_limit=$limit\n"; + +}